2
0
Эх сурвалжийг харах

bsdfs: fixed testLightInRange check.

Mr.doob 9 жил өмнө
parent
commit
77c9e678fb

+ 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 ) );
 
 }