Skip to content

Documentation / @ripl/3d / SceneUniformInput

Interface: SceneUniformInput ​

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

Everything the scene uniform needs, independent of any particular backend.

Properties ​

PropertyTypeDescriptionDefined in
cameraPositionVector3The camera's world-space position.3d/src/core/uniforms.ts:179
fog?ResolvedFog | nullThe resolved fog, or null/omitted for no fog.3d/src/core/uniforms.ts:183
lightsResolvedLight[]The resolved lights, capped at MAX_LIGHTS by the caller.3d/src/core/uniforms.ts:181
viewProjectionMatrixArrayLike<number>The combined view-projection matrix.3d/src/core/uniforms.ts:177