encode.Function.getSDRRendition - MONOGRID/gainmap-js GitHub Wiki

@monogrid/gainmap-js / encode / getSDRRendition

Function: getSDRRendition()

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

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

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>

Throws

if the WebGLRenderer fails to render the SDR image

⚠️ **GitHub.com Fallback** ⚠️