|
1 | 1 | import TempNode from '../core/TempNode.js'; |
2 | 2 | import { sub, mul, div } from './OperatorNode.js'; |
3 | | -import { addMethodChaining, nodeObject, nodeProxy, float, vec2, vec3, vec4, Fn } from '../tsl/TSLCore.js'; |
| 3 | +import { addMethodsChaining, nodeObject, nodeProxy, float, vec2, vec3, vec4, Fn } from '../tsl/TSLCore.js'; |
4 | 4 | import { WebGLCoordinateSystem, WebGPUCoordinateSystem } from '../../constants.js'; |
5 | 5 |
|
6 | 6 | /** @module MathNode **/ |
@@ -950,61 +950,62 @@ export const inversesqrt = inverseSqrt; |
950 | 950 |
|
951 | 951 | // Method chaining |
952 | 952 |
|
953 | | -addMethodChaining( 'all', all ); |
954 | | -addMethodChaining( 'any', any ); |
955 | | -addMethodChaining( 'equals', equals ); |
956 | | - |
957 | | -addMethodChaining( 'radians', radians ); |
958 | | -addMethodChaining( 'degrees', degrees ); |
959 | | -addMethodChaining( 'exp', exp ); |
960 | | -addMethodChaining( 'exp2', exp2 ); |
961 | | -addMethodChaining( 'log', log ); |
962 | | -addMethodChaining( 'log2', log2 ); |
963 | | -addMethodChaining( 'sqrt', sqrt ); |
964 | | -addMethodChaining( 'inverseSqrt', inverseSqrt ); |
965 | | -addMethodChaining( 'floor', floor ); |
966 | | -addMethodChaining( 'ceil', ceil ); |
967 | | -addMethodChaining( 'normalize', normalize ); |
968 | | -addMethodChaining( 'fract', fract ); |
969 | | -addMethodChaining( 'sin', sin ); |
970 | | -addMethodChaining( 'cos', cos ); |
971 | | -addMethodChaining( 'tan', tan ); |
972 | | -addMethodChaining( 'asin', asin ); |
973 | | -addMethodChaining( 'acos', acos ); |
974 | | -addMethodChaining( 'atan', atan ); |
975 | | -addMethodChaining( 'abs', abs ); |
976 | | -addMethodChaining( 'sign', sign ); |
977 | | -addMethodChaining( 'length', length ); |
978 | | -addMethodChaining( 'lengthSq', lengthSq ); |
979 | | -addMethodChaining( 'negate', negate ); |
980 | | -addMethodChaining( 'oneMinus', oneMinus ); |
981 | | -addMethodChaining( 'dFdx', dFdx ); |
982 | | -addMethodChaining( 'dFdy', dFdy ); |
983 | | -addMethodChaining( 'round', round ); |
984 | | -addMethodChaining( 'reciprocal', reciprocal ); |
985 | | -addMethodChaining( 'trunc', trunc ); |
986 | | -addMethodChaining( 'fwidth', fwidth ); |
987 | | -addMethodChaining( 'atan2', atan2 ); |
988 | | -addMethodChaining( 'min', min ); |
989 | | -addMethodChaining( 'max', max ); |
990 | | -addMethodChaining( 'mod', mod ); |
991 | | -addMethodChaining( 'step', step ); |
992 | | -addMethodChaining( 'reflect', reflect ); |
993 | | -addMethodChaining( 'distance', distance ); |
994 | | -addMethodChaining( 'dot', dot ); |
995 | | -addMethodChaining( 'cross', cross ); |
996 | | -addMethodChaining( 'pow', pow ); |
997 | | -addMethodChaining( 'pow2', pow2 ); |
998 | | -addMethodChaining( 'pow3', pow3 ); |
999 | | -addMethodChaining( 'pow4', pow4 ); |
1000 | | -addMethodChaining( 'transformDirection', transformDirection ); |
1001 | | -addMethodChaining( 'mix', mixElement ); |
1002 | | -addMethodChaining( 'clamp', clamp ); |
1003 | | -addMethodChaining( 'refract', refract ); |
1004 | | -addMethodChaining( 'smoothstep', smoothstepElement ); |
1005 | | -addMethodChaining( 'faceForward', faceForward ); |
1006 | | -addMethodChaining( 'difference', difference ); |
1007 | | -addMethodChaining( 'saturate', saturate ); |
1008 | | -addMethodChaining( 'cbrt', cbrt ); |
1009 | | -addMethodChaining( 'transpose', transpose ); |
1010 | | -addMethodChaining( 'rand', rand ); |
| 953 | +addMethodsChaining( { |
| 954 | + all: all, |
| 955 | + any: any, |
| 956 | + equals: equals, |
| 957 | + radians: radians, |
| 958 | + degrees: degrees, |
| 959 | + exp: exp, |
| 960 | + exp2: exp2, |
| 961 | + log: log, |
| 962 | + log2: log2, |
| 963 | + sqrt: sqrt, |
| 964 | + inverseSqrt: inverseSqrt, |
| 965 | + floor: floor, |
| 966 | + ceil: ceil, |
| 967 | + normalize: normalize, |
| 968 | + fract: fract, |
| 969 | + sin: sin, |
| 970 | + cos: cos, |
| 971 | + tan: tan, |
| 972 | + asin: asin, |
| 973 | + acos: acos, |
| 974 | + atan: atan, |
| 975 | + abs: abs, |
| 976 | + sign: sign, |
| 977 | + length: length, |
| 978 | + lengthSq: lengthSq, |
| 979 | + negate: negate, |
| 980 | + oneMinus: oneMinus, |
| 981 | + dFdx: dFdx, |
| 982 | + dFdy: dFdy, |
| 983 | + round: round, |
| 984 | + reciprocal: reciprocal, |
| 985 | + trunc: trunc, |
| 986 | + fwidth: fwidth, |
| 987 | + atan2: atan2, |
| 988 | + min: min, |
| 989 | + max: max, |
| 990 | + mod: mod, |
| 991 | + step: step, |
| 992 | + reflect: reflect, |
| 993 | + distance: distance, |
| 994 | + dot: dot, |
| 995 | + cross: cross, |
| 996 | + pow: pow, |
| 997 | + pow2: pow2, |
| 998 | + pow3: pow3, |
| 999 | + pow4: pow4, |
| 1000 | + transformDirection: transformDirection, |
| 1001 | + mix: mixElement, |
| 1002 | + clamp: clamp, |
| 1003 | + refract: refract, |
| 1004 | + smoothstep: smoothstepElement, |
| 1005 | + faceForward: faceForward, |
| 1006 | + difference: difference, |
| 1007 | + saturate: saturate, |
| 1008 | + cbrt: cbrt, |
| 1009 | + transpose: transpose, |
| 1010 | + rand: rand |
| 1011 | +} ); |
0 commit comments