From 28eab41546c99844a0acc9daba6c7503769bff28 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 25 Aug 2024 20:58:45 -0400 Subject: [PATCH] Nodes: IndexNode - invocationLocalIndex --- types/three/src/nodes/Nodes.d.ts | 9 ++++++++- types/three/src/nodes/core/IndexNode.d.ts | 12 ++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/types/three/src/nodes/Nodes.d.ts b/types/three/src/nodes/Nodes.d.ts index e35f162ef..328d715a4 100644 --- a/types/three/src/nodes/Nodes.d.ts +++ b/types/three/src/nodes/Nodes.d.ts @@ -8,7 +8,14 @@ export { bypass, default as BypassNode } from "./core/BypassNode.js"; export { cache, default as CacheNode } from "./core/CacheNode.js"; export { default as ConstNode } from "./core/ConstNode.js"; export { context, default as ContextNode, label } from "./core/ContextNode.js"; -export { default as IndexNode, drawIndex, IndexNodeScope, instanceIndex, vertexIndex } from "./core/IndexNode.js"; +export { + default as IndexNode, + drawIndex, + IndexNodeScope, + instanceIndex, + invocationLocalIndex, + vertexIndex, +} from "./core/IndexNode.js"; export { default as LightingModel, LightingModelDirectInput, diff --git a/types/three/src/nodes/core/IndexNode.d.ts b/types/three/src/nodes/core/IndexNode.d.ts index b6b52f718..a9d49f25b 100644 --- a/types/three/src/nodes/core/IndexNode.d.ts +++ b/types/three/src/nodes/core/IndexNode.d.ts @@ -1,9 +1,13 @@ import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; import Node from "./Node.js"; -export type IndexNodeScope = typeof IndexNode.VERTEX | typeof IndexNode.INSTANCE | typeof IndexNode.DRAW; +export type IndexNodeScope = + | typeof IndexNode.VERTEX + | typeof IndexNode.INSTANCE + | typeof IndexNode.INVOCATION_LOCAL + | typeof IndexNode.DRAW; -export default class IndexNode extends Node { +declare class IndexNode extends Node { scope: IndexNodeScope; readonly isInstanceNode: true; @@ -12,9 +16,13 @@ export default class IndexNode extends Node { static VERTEX: "vertex"; static INSTANCE: "instance"; + static INVOCATION_LOCAL: "invocationLocal"; static DRAW: "draw"; } +export default IndexNode; + export const vertexIndex: ShaderNodeObject; export const instanceIndex: ShaderNodeObject; +export const invocationLocalIndex: ShaderNodeObject; export const drawIndex: ShaderNodeObject;