From 66ea1231a2ae1c830269d7ecc2cdce78fc8e9897 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 1 Dec 2025 15:36:08 -0800 Subject: clamp ao --- yum_pbr.cginc | 1 + 1 file changed, 1 insertion(+) (limited to 'yum_pbr.cginc') diff --git a/yum_pbr.cginc b/yum_pbr.cginc index b6969f7..f70f056 100644 --- a/yum_pbr.cginc +++ b/yum_pbr.cginc @@ -235,6 +235,7 @@ YumPbr GetYumPbr(v2f i, float3x3 tangentToWorld) { #if defined(_AMBIENT_OCCLUSION) result.ao = lerp(1, tex2D(_OcclusionMap, i.uv01), _OcclusionStrength); + result.ao = saturate(result.ao); #else result.ao = 1; #endif -- cgit v1.2.3