From 50e451441f628aa3a28241af118700ae12147583 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 18 Jan 2026 08:52:18 -0800 Subject: Impostors: begin optimization work --- pbr.cginc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 pbr.cginc (limited to 'pbr.cginc') diff --git a/pbr.cginc b/pbr.cginc old mode 100644 new mode 100755 index 076cf65..b7392f7 --- a/pbr.cginc +++ b/pbr.cginc @@ -24,7 +24,7 @@ struct Pbr { float cl_strength; float3 cl_color; #endif -#if defined(_IMPOSTORS) +#if defined(_IMPOSTORS_DEPTH) float3 objPos; float debug; // TODO rm #endif @@ -170,8 +170,10 @@ Pbr getPbr(v2f i) { pbr.normal = imp.normal; pbr.smoothness = imp.smoothness; pbr.metallic = imp.metallic; +#if defined(_IMPOSTORS_DEPTH) pbr.objPos = imp.objPos; pbr.debug = imp.debug; +#endif #else pbr.albedo = _MainTex.Sample(aniso16_trilinear_repeat_s, uv_parallax * _MainTex_ST.xy + _MainTex_ST.zw); pbr.albedo *= _Color; -- cgit v1.2.3