Skip to content

encode.Function.getSDRRendition

github-actions[bot] edited this page Apr 2, 2025 · 17 revisions

@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

Clone this wiki locally