Skip to content

Commit

Permalink
GLSL alias functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Dec 17, 2024
1 parent 4d65438 commit c439991
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Three.TSL.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export const exp2 = TSL.exp2;
export const expression = TSL.expression;
export const faceDirection = TSL.faceDirection;
export const faceForward = TSL.faceForward;
export const faceforward = TSL.faceforward;
export const float = TSL.float;
export const floor = TSL.floor;
export const fog = TSL.fog;
Expand Down Expand Up @@ -194,6 +195,7 @@ export const instancedDynamicBufferAttribute = TSL.instancedDynamicBufferAttribu
export const instancedMesh = TSL.instancedMesh;
export const int = TSL.int;
export const inverseSqrt = TSL.inverseSqrt;
export const inversesqrt = TSL.inversesqrt;
export const invocationLocalIndex = TSL.invocationLocalIndex;
export const invocationSubgroupIndex = TSL.invocationSubgroupIndex;
export const ior = TSL.ior;
Expand Down
7 changes: 7 additions & 0 deletions src/nodes/math/MathNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,13 @@ export const atan2 = ( y, x ) => { // @deprecated, r172

};

// GLSL alias function

export const faceforward = faceForward;
export const inversesqrt = inverseSqrt;

// Method chaining

addMethodChaining( 'all', all );
addMethodChaining( 'any', any );
addMethodChaining( 'equals', equals );
Expand Down

0 comments on commit c439991

Please sign in to comment.