Browse Source

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

Ben Houston 10 years ago
parent
commit
2ba715f2ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/ShaderTerrain.js

+ 1 - 1
examples/js/ShaderTerrain.js

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