API reference

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

T

typeMaterialUniformsView

@codexo/exojs / rendering / stable

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.

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

Definition1
Source