Make PBR Neutral invertible (#7677)

Based on model-viewer's change at
https://github.com/google/model-viewer/pull/4716
This commit is contained in:
Romain Guy
2024-03-19 11:11:44 -07:00
committed by GitHub
parent ba9cb2fe43
commit a8fda9b4d0
+1 -1
View File
@@ -253,7 +253,7 @@ float3 PBRNeutralToneMapper::operator()(math::float3 color) const noexcept {
color *= newPeak / peak;
float g = 1.0f - 1.0f / (desaturation * (peak - newPeak) + 1.0f);
return mix(color, float3(1.0f), g);
return mix(color, float3(newPeak), g);
}
//------------------------------------------------------------------------------