Class
SkyBoxUniforms
View sourcePer-skybox CPU-side uniform payloads used by the renderer’s GPU cache.
Constructor
Properties
staticreadonly BlockSize : number
View sourcestd140 packs the model matrix and lerp into a fixed 80-byte block.
Default: ...
buffers : WeakMap<SkyBox, UniformBuffer>
View sourceDefault: ...
Methods
get ( skybox: SkyBox ) : UniformBuffer | undefined
View source Returns the existing buffer for a skybox, if any.
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.
setData ( skybox: SkyBox ) : UniformBuffer
View source Packs a skybox payload into its cached primary buffer and returns it.