Sfoglia il codice sorgente

Fix note #3 of issue https://github.com/mrdoob/three.js/pull/5805#issuecomment-75610227

Ben Houston 10 anni fa
parent
commit
2ba715f2ed
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/js/ShaderTerrain.js

+ 1 - 1
examples/js/ShaderTerrain.js

@@ -253,7 +253,7 @@ THREE.ShaderTerrain = {
 
 				"#endif",
 
-				"outgoingLight.rgb += diffuseColor.xyz * ( totalDiffuseLight + ambientLightColor * diffuse + totalSpecularLight );",
+				"outgoingLight += diffuseColor.xyz * ( totalDiffuseLight + ambientLightColor * diffuse + totalSpecularLight );",
 
 				THREE.ShaderChunk[ "shadowmap_fragment" ],
 				THREE.ShaderChunk[ "linear_to_gamma_fragment" ],