diff --git a/types/three/src/nodes/Nodes.d.ts b/types/three/src/nodes/Nodes.d.ts index 7b1e70422..c52324786 100644 --- a/types/three/src/nodes/Nodes.d.ts +++ b/types/three/src/nodes/Nodes.d.ts @@ -286,7 +286,7 @@ export * from "./accessors/TangentNode.js"; export { default as Texture3DNode, texture3D } from "./accessors/Texture3DNode.js"; export { default as TextureBicubicNode, textureBicubic } from "./accessors/TextureBicubicNode.js"; export { default as TextureNode, sampler, texture } from "./accessors/TextureNode.js"; -export { default as UniformsNode, uniforms } from "./accessors/UniformsNode.js"; +export { default as UniformArrayNode, uniformArray } from "./accessors/UniformArrayNode.js"; export { default as UserDataNode, userData } from "./accessors/UserDataNode.js"; export * from "./accessors/UVNode.js"; export { default as VertexColorNode, vertexColor } from "./accessors/VertexColorNode.js"; diff --git a/types/three/src/nodes/accessors/UniformsNode.d.ts b/types/three/src/nodes/accessors/UniformArrayNode.d.ts similarity index 57% rename from types/three/src/nodes/accessors/UniformsNode.d.ts rename to types/three/src/nodes/accessors/UniformArrayNode.d.ts index dac3cb870..3f7887cef 100644 --- a/types/three/src/nodes/accessors/UniformsNode.d.ts +++ b/types/three/src/nodes/accessors/UniformArrayNode.d.ts @@ -3,11 +3,11 @@ import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; import ArrayElementNode from "../utils/ArrayElementNode.js"; import BufferNode from "./BufferNode.js"; -declare class UniformsElementNode extends ArrayElementNode { +declare class UniformArrayElementNode extends ArrayElementNode { constructor(arrayBuffer: Node, indexNode: Node); } -export default class UniformsNode extends BufferNode { +declare class UniformArrayNode extends BufferNode { array: unknown[]; elementType: string | null; @@ -17,7 +17,9 @@ export default class UniformsNode extends BufferNode { getElementLength(): number; - element(indexNode: number): ShaderNodeObject; + element(indexNode: number): ShaderNodeObject; } -export const uniforms: (values: unknown[], nodeType?: string | null) => ShaderNodeObject; +export default UniformArrayNode; + +export const uniformArray: (values: unknown[], nodeType?: string | null) => ShaderNodeObject;