Skip to content

Commit

Permalink
Revert "feat: linear space ssao (#518)"
Browse files Browse the repository at this point in the history
This reverts commit 8c8c2d1.
  • Loading branch information
doodlum authored Sep 14, 2024
1 parent edeba24 commit 563a5b8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions package/Shaders/ISSAOComposite.hlsl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include "Common/Color.hlsli"
#include "Common/DummyVSTexCoord.hlsl"
#include "Common/FrameBuffer.hlsli"

Expand Down Expand Up @@ -161,9 +160,7 @@ PS_OUTPUT main(PS_INPUT input)
if (EyePosition.w != 0 && 1e-5 < snowMask) {
ao = min(1, SparklesParameters3.x + ao);
}
composedColor.xyz = GammaToLinear(composedColor.xyz);
composedColor.xyz *= ao;
composedColor.xyz = LinearToGamma(composedColor.xyz);
# endif

float depth = depthTex.SampleLevel(depthSampler, screenPosition, 0).x;
Expand Down

0 comments on commit 563a5b8

Please sign in to comment.