Explorar o código

ShaderChunk: Fixed typo.

Mr.doob %!s(int64=6) %!d(string=hai) anos
pai
achega
969c06d471
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/shaders/ShaderChunk/common.glsl.js

+ 1 - 1
src/renderers/shaders/ShaderChunk/common.glsl.js

@@ -8,7 +8,7 @@ export default /* glsl */`
 #define EPSILON 1e-6
 
 #define saturate(a) clamp( a, 0.0, 1.0 )
-#define whiteCompliment(a) ( 1.0 - saturate( a ) )
+#define whiteComplement(a) ( 1.0 - saturate( a ) )
 
 float pow2( const in float x ) { return x*x; }
 float pow3( const in float x ) { return x*x*x; }