From 91f89f5cbeed39cfa02ce5c4e7d9d75ce37625ff Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 13 Jun 2025 15:47:31 -0700 Subject: ssao now applies to basecolor instead of lighting also add toggle to consider l1 spherical harmonics. off by default for toon look. --- 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 03026c3..342b020 100644 --- a/yum_pbr.cginc +++ b/yum_pbr.cginc @@ -133,6 +133,7 @@ YumPbr GetYumPbr(v2f i, float3x3 tangentToWorld) { #endif applyDecals(i, result.albedo, normal_tangent, result.metallic, result.smoothness); + result.smoothness = min(0.99, result.smoothness); propagateRoughness(result.smoothness, result.roughness_perceptual, result.roughness); #if defined(_OKLCH_CORRECTION) -- cgit v1.2.3