Skip to content

Commit

Permalink
Update cCas.fxh
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Sep 2, 2024
1 parent e86da22 commit 3e9568e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shaders/shared/fidelityfx/cCas.fxh
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@
float MaxLobe = max(max(LobeRGB.r, LobeRGB.g), LobeRGB.b);

Sharpening = 1.0 - Sharpening;
float4 Lobe = max(-FSR_RCAS_LIMIT, min(MaxLobe, 0.0)) * int(exp2(-Sharpening));
float4 Lobe = max(-FSR_RCAS_LIMIT, min(MaxLobe, 0.0)) * exp2(-Sharpening);

// Apply noise removal
Lobe *= Noise;

// Resolve, which needs the medium precision rcp approximation to avoid visible tonality changes.
// Resolve
float4 RcpL = 1.0 / ((4.0 * Lobe) + 1.0);
FilterShape = Sample[0];
FilterShape += (Lobe * Sample[1]);
Expand Down

0 comments on commit 3e9568e

Please sign in to comment.