Explorar o código

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

Ben Houston %!s(int64=10) %!d(string=hai) anos
pai
achega
7fe874e4e1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl

+ 1 - 1
src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl

@@ -1,5 +1,5 @@
 #ifdef USE_LIGHTMAP
 
-	outgoingLight += diffuseColor.xyz * texture2D( lightMap, vUv2 ).xyz;
+	outgoingLight *= diffuseColor.xyz * texture2D( lightMap, vUv2 ).xyz;
 
 #endif