Преглед на файлове

bsdfs: fixed testLightInRange check.

Mr.doob преди 9 години
родител
ревизия
77c9e678fb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 ) );
 
 }