TonemappingUniform

View source

CPU-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


Properties


static BlockSize : number

View source

Four floats fit in one std140 slot.

Default: 16

readonly bindingSize : number

View source

Size of a single exposure slot in the shared buffer.

Methods


static getBindingSize ( renderDevice: WebGLRenderDevice ) : number

View source

Returns the size of one dynamically offset slot for the current device.

Parameters

Name Description Default
renderDevice — —

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.

Parameters

Name Description Default
viewIndex — —
exposure — —
colorGrading — —

Returns

The dynamic offset for the slot.