Browse Source

Update CSMShader.js

Applying the same change like in #27002.
Michael Herzog 1 year ago
parent
commit
bf7ec89eb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/csm/CSMShader.js

+ 1 - 1
examples/jsm/csm/CSMShader.js

@@ -6,7 +6,7 @@ vec3 geometryPosition = - vViewPosition;
 vec3 geometryNormal = normal;
 vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
 
-vec3 geometryClearcoatNormal;
+vec3 geometryClearcoatNormal = vec3( 0.0 );
 
 #ifdef USE_CLEARCOAT