API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classShaderUniform

@codexo/exojs / rendering / stable

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`).

7
props
2
methods
0
events
Import
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`).

Constructors 1
new(index: number, type: number, size: number, name: string, data: TypedArray): ShaderUniform
Methods 2
destroy(): void
setValue(value: TypedArray): this
Properties 7
index: number
name: string
size: number
type: number
dirty: boolean
propName: string
value: TypedArray
Source