Parcourir la source

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

Ben Houston il y a 11 ans
Parent
commit
7fe874e4e1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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

粤ICP备19079148号