Skip to content

Commit

Permalink
TSL - Normal: Remove redundancy (#29300)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored Sep 2, 2024
1 parent 598db0d commit f464589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nodes/accessors/Normal.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const normalView = /*@__PURE__*/ ( Fn( ( builder ) => {

}, 'vec3' ).once() )().toVar( 'normalView' );

export const normalWorld = /*@__PURE__*/ varying( normalView.transformDirection( cameraViewMatrix ).normalize(), 'v_normalWorld' ).normalize().toVar( 'normalWorld' );
export const normalWorld = /*@__PURE__*/ varying( normalView.transformDirection( cameraViewMatrix ), 'v_normalWorld' ).normalize().toVar( 'normalWorld' );

export const transformedNormalView = /*@__PURE__*/ ( Fn( ( builder ) => {

Expand All @@ -53,7 +53,7 @@ export const transformedNormalView = /*@__PURE__*/ ( Fn( ( builder ) => {
}, 'vec3' ).once() )().mul( faceDirection ).toVar( 'transformedNormalView' );


export const transformedNormalWorld = /*@__PURE__*/ transformedNormalView.transformDirection( cameraViewMatrix ).normalize().toVar( 'transformedNormalWorld' );
export const transformedNormalWorld = /*@__PURE__*/ transformedNormalView.transformDirection( cameraViewMatrix ).toVar( 'transformedNormalWorld' );

export const transformedClearcoatNormalView = /*@__PURE__*/ ( Fn( ( builder ) => {

Expand Down

0 comments on commit f464589

Please sign in to comment.