Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Aug 20, 2024
1 parent d24729a commit 0ce2095
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples-testing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ const exceptionList = [
'webgpu_storage_buffer',
'webgpu_texturegrad',
'webgpu_textures_2d-array',
'webgpu_tsl_compute_attractors_particles',
'webgpu_tsl_editor',
'webgpu_tsl_galaxy',
'webgpu_tsl_halftone',
'webgpu_tsl_interoperability',
'webgpu_tsl_raging_sea',
'webgpu_tsl_transpiler',
'webgpu_volume_cloud',
'webgpu_volume_perlin',
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 @@ -178,6 +178,7 @@ export { default as ConvertNode } from "./utils/ConvertNode.js";
export { default as DiscardNode, discard, Return } from "./utils/DiscardNode.js";
export { default as EquirectUVNode, equirectUV } from "./utils/EquirectUVNode.js";
export { default as JoinNode } from "./utils/JoinNode.js";
export { Break, Continue, default as LoopNode, loop } from "./utils/LoopNode.js";
export { default as MatcapUVNode, matcapUV } from "./utils/MatcapUVNode.js";
export { default as MaxMipLevelNode, maxMipLevel } from "./utils/MaxMipLevelNode.js";
export { default as OscNode, OscNodeMethod, oscSawtooth, oscSine, oscSquare, oscTriangle } from "./utils/OscNode.js";
Expand Down
23 changes: 23 additions & 0 deletions types/three/src/nodes/utils/LoopNode.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import Node from "../core/Node.js";
import NodeBuilder from "../core/NodeBuilder.js";
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";

declare class LoopNode extends Node {
params: unknown[];

constructor(params?: unknown[]);

getProperties(builder: NodeBuilder): unknown;
}

export default LoopNode;

export const loop: (...params: unknown[]) => ShaderNodeObject<Node>;
export const Continue: () => ShaderNodeObject<Node>;
export const Break: () => ShaderNodeObject<Node>;

declare module "../shadernode/ShaderNode.js" {
interface NodeElements {
loop: (returns: NodeRepresentation) => ShaderNodeObject<Node>;
}
}

0 comments on commit 0ce2095

Please sign in to comment.