Skip to content

Commit

Permalink
fix: hue preservation NaN (doodlum#806)
Browse files Browse the repository at this point in the history
* fix: hue preservation NaN

* fix: better fix
  • Loading branch information
doodlum authored Nov 30, 2024
1 parent 719fba9 commit 4fe1586
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/Shaders/ISHDR.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ PS_OUTPUT main(PS_INPUT input)
float3 ppColor = 0.0;
{
inputColor *= avgValue.y / avgValue.x;
inputColor = max(0, inputColor);

float3 blendedColor;
[branch] if (Param.z > 0.5)
Expand Down

0 comments on commit 4fe1586

Please sign in to comment.