From 32e97efac494554647083dc215b0436ce9a23e6e Mon Sep 17 00:00:00 2001 From: doodlum <15017472+doodlum@users.noreply.github.com> Date: Sat, 14 Sep 2024 21:37:40 +0100 Subject: [PATCH] revert: "feat: linear space ssao" (#525) This reverts commit 8c8c2d11647e89cc61c81ab7f83781ccc86325ef. --- package/Shaders/ISSAOComposite.hlsl | 3 --- 1 file changed, 3 deletions(-) diff --git a/package/Shaders/ISSAOComposite.hlsl b/package/Shaders/ISSAOComposite.hlsl index 355eb89af..ab195a091 100644 --- a/package/Shaders/ISSAOComposite.hlsl +++ b/package/Shaders/ISSAOComposite.hlsl @@ -1,4 +1,3 @@ -#include "Common/Color.hlsli" #include "Common/DummyVSTexCoord.hlsl" #include "Common/FrameBuffer.hlsli" @@ -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;