Browse Source

Update CSMShader.js

Applying the same change like in #27002.
Michael Herzog 1 năm trước cách đây
mục cha
commit
bf7ec89eb0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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