Browse Source

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

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

+ 1 - 1
examples/js/ShaderTerrain.js

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

+ 1 - 1
examples/js/shaders/NormalDisplacementShader.js

@@ -391,7 +391,7 @@ THREE.NormalDisplacementShader = {
 
 		"	#else",
 
-		"		outgoingLight += diffuseColor.xyz * ( totalDiffuseLight + ambientLightColor * diffuse ) + totalSpecularLight;",
+		"		outgoingLight += diffuseColor.xyz * ( totalDiffuseLight + ambientLightColor ) + totalSpecularLight;",
 
 		"	#endif",