Skip to content

Commit 86018eb

Browse files
authored
TSL: GLSL alias functions (#30150)
1 parent 74b7a6f commit 86018eb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Three.TSL.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export const exp2 = TSL.exp2;
155155
export const expression = TSL.expression;
156156
export const faceDirection = TSL.faceDirection;
157157
export const faceForward = TSL.faceForward;
158+
export const faceforward = TSL.faceforward;
158159
export const float = TSL.float;
159160
export const floor = TSL.floor;
160161
export const fog = TSL.fog;
@@ -194,6 +195,7 @@ export const instancedDynamicBufferAttribute = TSL.instancedDynamicBufferAttribu
194195
export const instancedMesh = TSL.instancedMesh;
195196
export const int = TSL.int;
196197
export const inverseSqrt = TSL.inverseSqrt;
198+
export const inversesqrt = TSL.inversesqrt;
197199
export const invocationLocalIndex = TSL.invocationLocalIndex;
198200
export const invocationSubgroupIndex = TSL.invocationSubgroupIndex;
199201
export const ior = TSL.ior;

src/nodes/math/MathNode.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,13 @@ export const atan2 = ( y, x ) => { // @deprecated, r172
943943

944944
};
945945

946+
// GLSL alias function
947+
948+
export const faceforward = faceForward;
949+
export const inversesqrt = inverseSqrt;
950+
951+
// Method chaining
952+
946953
addMethodChaining( 'all', all );
947954
addMethodChaining( 'any', any );
948955
addMethodChaining( 'equals', equals );

0 commit comments

Comments
 (0)