BloomUniform

View source

CPU-side payload for bloom threshold, intensity, and soft knee.

Constructor


Properties


static BlockSize : number

View source

std140 keeps the block aligned to a 16-byte slot.

Default: 16

readonly bindingSize : number

View source

Size of a single bloom 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 — —

setBloom ( viewIndex: number , bloom: Bloom ) : number

View source

Writes a bloom payload into the slot at the requested view index.

Parameters

Name Description Default
viewIndex — —
bloom — —

Returns

The dynamic offset for the slot.