From 6e1c003ad574fa7606b91cc1c59b327237b6af3e Mon Sep 17 00:00:00 2001 From: yum Date: Sat, 19 Jul 2025 19:31:57 -0700 Subject: meow im gay --- ssao.cginc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ssao.cginc') diff --git a/ssao.cginc b/ssao.cginc index ad20a28..f8d7e0d 100644 --- a/ssao.cginc +++ b/ssao.cginc @@ -23,6 +23,11 @@ float get_ssao(v2f i, float3x3 tangentToWorld, out float2 debug) { cos(ssao_theta), -sin(ssao_theta), sin(ssao_theta), cos(ssao_theta)); + [branch] + if (round(_SSAO_Samples) < 1) { + return 1; + } + float ssao_occlusion = 0; const float ssao_eps = 1E-5; [loop] -- cgit v1.2.3