瀏覽代碼

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