diff --git a/types/three/examples/jsm/nodes/accessors/ReferenceNode.d.ts b/types/three/examples/jsm/nodes/accessors/ReferenceNode.d.ts index 870dcf585..b52150aad 100644 --- a/types/three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/ReferenceNode.d.ts @@ -1,16 +1,27 @@ import { NodeTypeOption } from "../core/constants.js"; import Node from "../core/Node.js"; -import { NodeOrType, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import { NodeOrType, NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class ReferenceNode extends Node { - object: T; property: string; - uniformType: string; + indexNode: Node | null; + + uniformType: NodeTypeOption; + + object: T; + reference: T | null; + node: Node | null; - constructor(property: string, uniformType: NodeTypeOption, object?: T | null); + constructor(property: string, uniformType: NodeTypeOption, object?: T | null, indexNode?: Node | null); setNodeType(uniformType: NodeTypeOption): void; } export const reference: (name: string, nodeOrType: NodeOrType, object: T) => ShaderNodeObject>; +export const referenceIndex: ( + name: string, + index: NodeRepresentation, + nodeOrType: NodeOrType, + object: T, +) => ShaderNodeObject>;