diff --git a/types/three/src/Three.TSL.d.ts b/types/three/src/Three.TSL.d.ts index d1a19ef0e..fb1a1d1f6 100644 --- a/types/three/src/Three.TSL.d.ts +++ b/types/three/src/Three.TSL.d.ts @@ -130,6 +130,8 @@ export const dFdx: typeof TSL.dFdx; export const dFdy: typeof TSL.dFdy; export const dashSize: typeof TSL.dashSize; export const debug: typeof TSL.debug; +export const decrement: typeof TSL.decrement; +export const decrementBefore: typeof TSL.decrementBefore; export const defaultBuildStages: typeof TSL.defaultBuildStages; export const defaultShaderStages: typeof TSL.defaultShaderStages; export const defined: typeof TSL.defined; @@ -194,6 +196,8 @@ export const hash: typeof TSL.hash; export const highpModelNormalViewMatrix: typeof TSL.highpModelNormalViewMatrix; export const highPrecisionModelViewMatrix: typeof TSL.highpModelViewMatrix; export const hue: typeof TSL.hue; +export const increment: typeof TSL.increment; +export const incrementBefore: typeof TSL.incrementBefore; export const instance: typeof TSL.instance; export const instanceIndex: typeof TSL.instanceIndex; export const instancedArray: typeof TSL.instancedArray; diff --git a/types/three/src/nodes/math/OperatorNode.d.ts b/types/three/src/nodes/math/OperatorNode.d.ts index 751122dce..d9df215c0 100644 --- a/types/three/src/nodes/math/OperatorNode.d.ts +++ b/types/three/src/nodes/math/OperatorNode.d.ts @@ -79,6 +79,11 @@ export const bitXor: (a: NodeRepresentation, b: NodeRepresentation) => ShaderNod export const shiftLeft: (a: NodeRepresentation, b: NodeRepresentation) => ShaderNodeObject; export const shiftRight: (a: NodeRepresentation, b: NodeRepresentation) => ShaderNodeObject; +export const incrementBefore: (a: NodeRepresentation) => ShaderNodeObject; +export const decrementBefore: (a: NodeRepresentation) => ShaderNodeObject; +export const increment: (a: NodeRepresentation) => ShaderNodeObject; +export const decrement: (a: NodeRepresentation) => ShaderNodeObject; + declare module "../tsl/TSLCore.js" { interface NodeElements { add: typeof add; @@ -102,6 +107,10 @@ declare module "../tsl/TSLCore.js" { bitXor: typeof bitXor; shiftLeft: typeof shiftLeft; shiftRight: typeof shiftRight; + incrementBefore: typeof incrementBefore; + decrementBefore: typeof decrement; + increment: typeof increment; + decrement: typeof decrement; } }