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
1 change: 1 addition & 0 deletions types/three/src/Three.TSL.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export const cubeTexture: typeof TSL.cubeTexture;
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 defaultBuildStages: typeof TSL.defaultBuildStages;
export const defaultShaderStages: typeof TSL.defaultShaderStages;
export const defined: typeof TSL.defined;
Expand Down
1 change: 1 addition & 0 deletions types/three/src/nodes/Nodes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export { NodeUtils };
// utils
export { default as ArrayElementNode } from "./utils/ArrayElementNode.js";
export { default as ConvertNode } from "./utils/ConvertNode.js";
export { default as DebugNode } from "./utils/DebugNode.js";
export { default as EquirectUVNode } from "./utils/EquirectUVNode.js";
export { default as FunctionOverloadingNode } from "./utils/FunctionOverloadingNode.js";
export { default as JoinNode } from "./utils/JoinNode.js";
Expand Down
1 change: 1 addition & 0 deletions types/three/src/nodes/tsl/TSLBase.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export * from "../gpgpu/ComputeNode.js";
export * from "../math/ConditionalNode.js";
export * from "../math/MathNode.js";
export * from "../math/OperatorNode.js";
export * from "../utils/DebugNode.js";
export * from "../utils/Discard.js";
export * from "../utils/RemapNode.js";
export * from "./TSLCore.js";
Expand Down
20 changes: 20 additions & 0 deletions types/three/src/nodes/utils/DebugNode.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import Node from "../core/Node.js";
import TempNode from "../core/TempNode.js";
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";

declare class DebugNode extends TempNode {
constructor(node: Node, callback?: ((code: string) => void) | null);
}

export default DebugNode;

export const debug: (
node: NodeRepresentation,
callback?: ((code: string) => void) | null,
) => ShaderNodeObject<DebugNode>;

declare module "../tsl/TSLCore.js" {
interface NodeElements {
debug: typeof debug;
}
}
Loading