API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classShaderUniform
Metadata and current value for a single GLSL uniform variable. Populated by the backend during Shader.connect. The `dirty` flag is set to `true` on construction and on every setValue call; the backend clears it via markClean after uploading the value to the GPU. Array-type uniform names have their index suffix stripped (e.g. `uColors[0]` becomes `uColors`).
import { ShaderUniform } from '@codexo/exojs' Metadata and current value for a single GLSL uniform variable.
Populated by the backend during Shader.connect. The `dirty` flag is set to `true` on construction and on every setValue call; the backend clears it via markClean after uploading the value to the GPU. Array-type uniform names have their index suffix stripped (e.g. `uColors[0]` becomes `uColors`).
new(index: number, type: number, size: number, name: string, data: TypedArray): ShaderUniform destroy(): void setValue(value: TypedArray): this index: number name: string size: number type: number dirty: boolean propName: string value: TypedArray