Skip to content

Documentation / @ripl/3d / SCENE_UNIFORM_WGSL

Variable: SCENE_UNIFORM_WGSL ​

const SCENE_UNIFORM_WGSL: string

Defined in: 3d/src/core/uniforms.ts:376

The WGSL declaration of the scene uniform, generated from SCENE_UNIFORM_FIELDS.

Interpolated into both shader stages rather than written out twice, so the vertex and fragment stages cannot disagree about the layout the packer writes.