API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeMaterialUniformsView
What Material.uniforms exposes: typed accessors when the shader source declares `uniforms`, the mutable value record when it declares no schema, and nothing when it declares named blocks instead. The absence of a declaration is what is tested rather than its presence: under `strictNullChecks: false`, which snippet and guide programs use, `undefined` is assignable to every object type, so asking whether it extends `UniformFields` answers yes and hands an undeclared source the typed view.
import { MaterialUniformsView } from '@codexo/exojs'What Material.uniforms exposes: typed accessors when the shader source declares `uniforms`, the mutable value record when it declares no schema, and nothing when it declares named blocks instead.
The absence of a declaration is what is tested rather than its presence: under `strictNullChecks: false`, which snippet and guide programs use, `undefined` is assignable to every object type, so asking whether it extends `UniformFields` answers yes and hands an undeclared source the typed view.
F extends undefined ? B extends undefined ? Record<string, UniformValueValue accepted by a material uniform on a shader source that declares no uniform schema. Scalars and small tuples auto-marshal to the appropriate `Float32Array…> : never : UniformFieldAccessorsOne accessor per declared field, under the field's own name.<Extract<F, UniformFieldsThe fields of a block or a nested struct, keyed by their shader-visible name.>>