Skip to content

Commit

Permalink
fix: Now element from uniformArray accept both a number and `Sh…
Browse files Browse the repository at this point in the history
…aderNodeObject` (#1286)

* fix: Now `element` from `uniformArray` accept both a `number` and `ShaderNodeObject`.

* Use NodeRepresentation

---------

Co-authored-by: Nathan Bierema <[email protected]>
  • Loading branch information
Byloth and Methuselah96 authored Oct 22, 2024
1 parent aeb5c23 commit 6bfd3ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/three/src/nodes/accessors/UniformArrayNode.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Node from "../core/Node.js";
import { ShaderNodeObject } from "../tsl/TSLCore.js";
import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
import ArrayElementNode from "../utils/ArrayElementNode.js";
import BufferNode from "./BufferNode.js";

Expand All @@ -17,7 +17,7 @@ declare class UniformArrayNode extends BufferNode {

getElementLength(): number;

element(indexNode: number): ShaderNodeObject<UniformArrayElementNode>;
element(indexNode: NodeRepresentation): ShaderNodeObject<UniformArrayElementNode>;
}

export default UniformArrayNode;
Expand Down

0 comments on commit 6bfd3ed

Please sign in to comment.