Skip to content

Commit

Permalink
fix(risetombraider): fix rgba16f upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Jan 18, 2025
1 parent 99f6120 commit ff3b6d6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ void main(
r0.x = -1 + r0.x;
r0.x = adaptationPerc * r0.x + 1;
r1.xyzw = frameBufferCopy.SampleLevel(SamplerGenericPointClamp_s, v1.xy, 0).xyzw;

// Custom: Support RGBA16F upgrade
r1.xyz = max(0, r1.xyz);

r0.yzw = g_fExposure_pre * r1.xyz;
o0.w = r1.w;
r0.xyz = r0.yzw * r0.xxx;
Expand Down

0 comments on commit ff3b6d6

Please sign in to comment.