Explorar el Código

Fixed FlyCamera Earth example.

As normal map material now handles fog, it has to be enabled explicitly.
alteredq hace 14 años
padre
commit
f72cec853f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/webgl_flycamera_earth.html

+ 1 - 1
examples/webgl_flycamera_earth.html

@@ -138,7 +138,7 @@
 
 		uniforms[ "uShininess" ].value = 30;
 
-		var parameters = { fragmentShader: shader.fragmentShader, vertexShader: shader.vertexShader, uniforms: uniforms, lights: true };
+		var parameters = { fragmentShader: shader.fragmentShader, vertexShader: shader.vertexShader, uniforms: uniforms, lights: true, fog: true };
 		var materialNormalMap = new THREE.MeshShaderMaterial( parameters );
 
 		// planet