etteColor = texture2D(paletteTexture, paletteUV);
            // diffuseColor.rgb += paletteColor.rgb;   // white outlines
            diffuseColor.rgb = paletteColor.rgb - diffuseColor.rgb;  // black outlines
          }
        `,
			},
		];

		const texture = loader.load( 'resources/data/world/country-outlines-4k.png', render );
		const material = new THREE.MeshBasicMaterial( { map: texture } );
		material.onBeforeCompile = function ( shader ) {

			fragmentShaderReplacements.forEach( ( rep ) => {

				s