Skip to content

Commit

Permalink
chore: less intense ao (#727)
Browse files Browse the repository at this point in the history
* chore: less intense ao

* style: 🎨 apply clang-format changes

---------

Co-authored-by: doodlum <doodlum@users.noreply.github.com>
  • Loading branch information
doodlum and doodlum authored Nov 10, 2024
1 parent 610c2e1 commit d80f0a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package/Shaders/ISSAOComposite.hlsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "Common/Color.hlsli"
#include "Common/DummyVSTexCoord.hlsl"
#include "Common/FrameBuffer.hlsli"

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

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

0 comments on commit d80f0a5

Please sign in to comment.