Browse Source

bsdfs: fixed testLightInRange check.

Mr.doob 9 năm trước cách đây
mục cha
commit
77c9e678fb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/renderers/shaders/ShaderChunk/bsdfs.glsl

+ 1 - 1
src/renderers/shaders/ShaderChunk/bsdfs.glsl

@@ -1,6 +1,6 @@
 bool testLightInRange( const in float lightDistance, const in float cutoffDistance ) {
 
-	return any( bvec2( lightDistance == 0.0, lightDistance < cutoffDistance ) );
+	return any( bvec2( cutoffDistance == 0.0, lightDistance < cutoffDistance ) );
 
 }