-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
types/three/examples/jsm/nodes/accessors/UniformsNode.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Node from "../core/Node.js"; | ||
import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; | ||
import ArrayElementNode from "../utils/ArrayElementNode.js"; | ||
import BufferNode from "./BufferNode.js"; | ||
|
||
declare class UniformsElementNode extends ArrayElementNode { | ||
constructor(arrayBuffer: Node, indexNode: Node); | ||
} | ||
|
||
export default class UniformsNode extends BufferNode { | ||
array: unknown[]; | ||
elementType: string | null; | ||
|
||
readonly isArrayBufferNode: true; | ||
|
||
constructor(value: unknown[], elementType?: string | null); | ||
|
||
getElementType(): string | null; | ||
|
||
getElementLength(): number; | ||
|
||
element(indexNode: number): ShaderNodeObject<UniformsElementNode>; | ||
} | ||
|
||
export const uniforms: (values: unknown[], nodeType?: string | null) => ShaderNodeObject<UniformsNode>; |