Skip to content

Commit

Permalink
Update lights_fragment_begin.glsl.js (#27002)
Browse files Browse the repository at this point in the history
Fix of 0(1578) : 'warning C7050: "geometryClearcoatNormal" might be used before being initialized' #26994 issue.

Co-authored-by: Andrew <andrew@sciter.com>
  • Loading branch information
c-smile and Andrew committed Oct 18, 2023
1 parent b35548a commit eb397f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,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
Expand Down

0 comments on commit eb397f8

Please sign in to comment.