Function: convertHDRToLDR()
convertHDRToLDR(
hdrBuffer,options?):object
Convert an HDR file buffer to LDR RGB buffer
This is a convenience function that combines parsing and conversion. Output is sRGB.
Parameters
hdrBuffer
Uint8Array
Uint8Array containing HDR file data
options?
HDRToLDROptions = {}
Tone mapping options (toneMapping, exposure)
Returns
object
Object containing width, height, and LDR RGB buffer
height
height:
number
ldrData
ldrData:
Uint8Array
width
width:
number