Browse Source

bsdfs: fixed testLightInRange check.

Mr.doob 9 years ago
parent
commit
77c9e678fb
1 changed files with 1 additions and 1 deletions
  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 ) {
 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 ) );
 
 
 }
 }