SkyBoxUniforms

View source

Per-skybox CPU-side uniform payloads used by the renderer’s GPU cache.

Constructor


constructor ( )

Properties


staticreadonly BlockSize : number

View source

std140 packs the model matrix and lerp into a fixed 80-byte block.

Default: ...

Methods


getOrSet ( skybox: SkyBox , minSize?: number ) : UniformBuffer

View source

Returns a buffer for the requested skybox, creating it if needed. The backing ArrayBuffer is grown to at least minSize.

Parameters

Name Description Default
skybox — —
minSize? — 0

setData ( skybox: SkyBox ) : UniformBuffer

View source

Packs a skybox payload into its cached primary buffer and returns it.

Parameters

Name Description Default
skybox — —