Class
TonemappingUniform
View sourceCPU-side payload for the tonemapping and color grading block.
Each view gets its own aligned slot in the backing buffer so the render pass can use dynamic offsets when binding exposure data.
Constructor
View source
Properties
static BlockSize : number
View sourceFour floats fit in one std140 slot.
Default: 16
readonly bindingSize : number
View sourceSize of a single exposure slot in the shared buffer.
readonly buffer : UniformBuffer
View sourceBacking CPU-side buffer used by the renderer’s GPU cache.
Default: ...
Methods
static getBindingSize ( renderDevice: WebGLRenderDevice ) : number
View source Returns the size of one dynamically offset slot for the current device.
setValues ( viewIndex: number , exposure: number , colorGrading: ColorGrading | undefined ) : number
View source Writes camera tone-mapping and grading values into the slot at the requested view index.