Skip to content

Commit

Permalink
chore: more natural tonemap
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlum committed Feb 11, 2025
1 parent 142a399 commit ba9b9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/Shaders/Common/DisplayMapping.hlsli
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace DisplayMapping
col = ICtCpToRGB(ictcp * float3(1, saturationAmount.xx));

// Hue preserving mapping
float maxCol = Color::RGBToLuminance(col);
float maxCol = max(col.x, max(col.y, col.z));
float mappedMax = GetTonemapFactorHejlBurgessDawson(maxCol);
float3 compressedHuePreserving = col * mappedMax / maxCol;

Expand Down

0 comments on commit ba9b9ff

Please sign in to comment.