Skip to main content

Variable: RENDER_TARGET_FORMAT

const RENDER_TARGET_FORMAT: object

Defined in: rendering/enums/render-target-format.enum.ts:11

The RENDER_TARGET_FORMAT lookup defines the color texture storage a RenderTarget allocates.

Type Declaration

hdr

readonly hdr: "hdr" = 'hdr'

Half-float (RGBA16F) color storage. Values above 1 survive intermediate passes instead of being clamped, so bloom and tone mapping can operate on true HDR brightness. Requires the EXT_color_buffer_float WebGL2 extension; silently falls back to ldr when it's unavailable (see resolveRenderTargetFormat).

ldr

readonly ldr: "ldr" = 'ldr'

8-bit-per-channel color storage. Values are clamped to [0, 1] the moment a fragment shader writes them. The default for every render target.