Skip to content
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
4 changes: 4 additions & 0 deletions types/three/src/Three.TSL.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
9 changes: 9 additions & 0 deletions types/three/src/nodes/math/OperatorNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ export const bitXor: (a: NodeRepresentation, b: NodeRepresentation) => ShaderNod
export const shiftLeft: (a: NodeRepresentation, b: NodeRepresentation) => ShaderNodeObject<OperatorNode>;
export const shiftRight: (a: NodeRepresentation, b: NodeRepresentation) => ShaderNodeObject<OperatorNode>;

export const incrementBefore: (a: NodeRepresentation) => ShaderNodeObject<Node>;
export const decrementBefore: (a: NodeRepresentation) => ShaderNodeObject<Node>;
export const increment: (a: NodeRepresentation) => ShaderNodeObject<Node>;
export const decrement: (a: NodeRepresentation) => ShaderNodeObject<Node>;

declare module "../tsl/TSLCore.js" {
interface NodeElements {
add: typeof add;
Expand All @@ -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;
}
}

Expand Down
Loading