Browse Source

shadowMask shouldn't be applied to indirect.

Ben Houston 10 năm trước cách đây
mục cha
commit
c45b7cf94d
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      src/renderers/shaders/ShaderLib.js

+ 0 - 2
src/renderers/shaders/ShaderLib.js

@@ -387,8 +387,6 @@ THREE.ShaderLib = {
 
 				"directReflectedLight.diffuse *= shadowMask;",
 				"directReflectedLight.specular *= shadowMask;",
-				"indirectReflectedLight.diffuse *= shadowMask;",
-				"indirectReflectedLight.specular *= shadowMask;",
 
 				"#ifdef METAL",