소스 검색

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" ],