From 02c32fcc30e753da96f0aa072ed1d74ca300979c Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 16 Jan 2026 15:35:54 -0800 Subject: Impostors: fix bounding sphere scale --- pbr.cginc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pbr.cginc') diff --git a/pbr.cginc b/pbr.cginc index 6a14655..2aa6be7 100644 --- a/pbr.cginc +++ b/pbr.cginc @@ -24,6 +24,9 @@ struct Pbr { float cl_strength; float3 cl_color; #endif +#if defined(_IMPOSTORS) + float3 objPos; +#endif }; #define MIN_PERCEPTUAL_ROUGHNESS 5e-2f @@ -166,6 +169,7 @@ Pbr getPbr(v2f i) { pbr.normal = imp.normal; pbr.smoothness = imp.smoothness; pbr.metallic = imp.metallic; + pbr.objPos = imp.objPos; #else pbr.albedo = _MainTex.Sample(aniso16_trilinear_repeat_s, uv_parallax * _MainTex_ST.xy + _MainTex_ST.zw); pbr.albedo *= _Color; -- cgit v1.2.3