Skip to content

Commit

Permalink
Go easy on the gamut expansion.
Browse files Browse the repository at this point in the history
Trying to fix reported cases of extreme color saturation. Gamut expansion range is now from 0.0 to 0.1, for the default saturation it is set to 0.05.
  • Loading branch information
AnotherCommander authored Sep 15, 2024
1 parent 4c52dab commit 7598022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Shaders/oolite-final-hdr.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ void main()
vec3 result = ACESFilmRec2020OrReinhardHDR(mix(hdrColor, luma, clamp(t * 80 / uMaxBrightness, 0.0, 1.0)) * uPaperWhiteBrightness * 0.0125);

// gamut expansion here
result = expandGamut(result, 1.0f / pow(2.0f, uSaturation));
result = expandGamut(result, uSaturation * 0.05f);

#if HDR_HEATMAP
{
Expand Down

0 comments on commit 7598022

Please sign in to comment.