瀏覽代碼

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

Ben Houston 10 年之前
父節點
當前提交
2ba715f2ed
共有 1 個文件被更改,包括 1 次插入1 次删除
  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" ],