Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSL: GLSL alias functions #30150

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading