Skip to content

encode.Function.getSDRRendition

github-actions[bot] edited this page Jul 8, 2024 · 35 revisions

@monogrid/gainmap-js / encode / getSDRRendition

Function: getSDRRendition()

getSDRRendition(hdrTexture, renderer?, toneMapping?, renderTargetOptions?): QuadRenderer<1009, SDRMaterial>

Renders an SDR Representation of an HDR Image

Parameters

• hdrTexture: DataTexture

The HDR image to be rendered

• renderer?: WebGLRenderer

(optional) WebGLRenderer to use during the rendering, a disposable renderer will be create and destroyed if this is not provided.

• toneMapping?: ToneMapping

(optional) Tone mapping to be applied to the SDR Rendition

• renderTargetOptions?: QuadRendererTextureOptions

(optional) Options to use when creating the output renderTarget

Returns

QuadRenderer<1009, SDRMaterial>

Throws

if the WebGLRenderer fails to render the SDR image

Defined in

src/encode/get-sdr-rendition.ts:25

Clone this wiki locally