Преглед изворни кода

add lightmap_fragment.glsl

WestLangley пре 9 година
родитељ
комит
240205b7fd
1 измењених фајлова са 5 додато и 0 уклоњено
  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