diff options
| author | yum <yum.food.vr@gmail.com> | 2025-07-19 19:31:57 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-08-13 17:02:56 -0700 |
| commit | 6e1c003ad574fa7606b91cc1c59b327237b6af3e (patch) | |
| tree | 745191292af1a1ea90ff932330cbeb5b7367df4e /ssao.cginc | |
| parent | 512357cd6ffe15c4e4fb40ee09d4f04c51df95a3 (diff) | |
meow im gay
Diffstat (limited to 'ssao.cginc')
| -rw-r--r-- | ssao.cginc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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] |
