Skip to content

Commit

Permalink
Merge pull request #66 from marat569/visionsofmana
Browse files Browse the repository at this point in the history
[VOMANA] Fix Game/UI nit sliders
  • Loading branch information
marat569 authored Dec 21, 2024
2 parents d07ebaf + f5001ae commit 124a799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/games/visionsofmana/common.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ void tonemap(in float3 ap1_graded_color, in float3 ap1_aces_colored, out float3

float3 scalePaperWhite(float3 color) {
color = renodx::color::srgb::EncodeSafe(color);
color = renodx::math::PowSafe(color, 1.f / 2.2f); //
color *= injectedData.toneMapGameNits / injectedData.toneMapUINits;
color = renodx::math::PowSafe(color, 2.2f); //
color *= injectedData.toneMapGameNits / injectedData.toneMapUINits;
color = renodx::math::PowSafe(color, 1.f / 2.2f); //

return color.rgb;
return color;
}

0 comments on commit 124a799

Please sign in to comment.