From 40cca6047a1cbaf9f8567aacddf67a877cdc3530 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 21 Jul 2026 15:23:33 -0700 Subject: Add custom cubemap; fix normal filtering; make glitter tint HDR --- pbr.cginc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pbr.cginc') diff --git a/pbr.cginc b/pbr.cginc index 29bcedb..0088fa6 100755 --- a/pbr.cginc +++ b/pbr.cginc @@ -116,7 +116,7 @@ float normalFiltering(float3 geometric_normal, float perceptual_roughness) { } void propagateSmoothness(inout Pbr pbr) { - pbr.smoothness = 1.0f - normalFiltering(pbr.geometric_normal, 1.0f - pbr.smoothness); + pbr.smoothness = 1.0f - normalFiltering(pbr.normal, 1.0f - pbr.smoothness); pbr.roughness_perceptual = clamp(1.0f - pbr.smoothness, MIN_PERCEPTUAL_ROUGHNESS, 1); pbr.roughness = clamp(pbr.roughness_perceptual * pbr.roughness_perceptual, MIN_ROUGHNESS, 1); -- cgit v1.2.3