ソースを参照

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