KhronosGroup / glTF-Sample-Viewer

Physically-Based Rendering in glTF 2.0 using WebGL
Apache License 2.0
1.21k stars 229 forks source link

Update "PBR Neutral" tone mapping with recent change. #538

Closed emackey closed 1 month ago

emackey commented 1 month ago

Updated the "Khronos PBR Neutral" tone mapper with a small mathematical tweak that was published to its new location:

https://github.com/KhronosGroup/ToneMapping/blob/main/PBR_Neutral/pbrNeutral.glsl

I recall this change was desired to make the tone mapper mathematically invertible. Also some trailing whitespace was removed.

/cc @elalish