Browse Source

add lightmap_fragment.glsl

WestLangley 9 years ago
parent
commit
240205b7fd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl

+ 5 - 0
src/renderers/shaders/ShaderChunk/lightmap_fragment.glsl

@@ -0,0 +1,5 @@
+#ifdef USE_LIGHTMAP
+
+	reflectedLight.indirectDiffuse += PI * texture2D( lightMap, vUv2 ).xyz * lightMapIntensity; // factor of PI should not be present; included here to prevent breakage
+
+#endif