hader.fragmentShader = shader.fragmentShader.replace( rep.from, rep.to );

			} );
			shader.uniforms.paletteTexture = { value: paletteTexture };
			shader.uniforms.indexTexture = { value: indexTexture };
			shader.uniforms.paletteTextureWidth = { value: paletteTextureWidth };

		};

		scene.add( new THREE.Mesh( geometry, material ) );

	}

	async function loadJSON( url ) {

		const req = await fetch( url );
		return req.json();

	}

	let numCountriesSelected = 0;
	let countryInfos;
	async function loadCoun