Skip to content

Commit

Permalink
revert: "feat: linear space ssao" (doodlum#525)
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 32e97ef
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 32e97ef

Please sign in to comment.