From 864c2ba12dc864d9cb55cb797ba8919bee5b5913 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 16 Feb 2026 16:32:00 -0800 Subject: Add instancing distance culling, scale deformation * GPU instance distance culling now takes a min/max range * Fold recovers ops from material, allowing state to persist across editor restarts * Add scale node to vertex deformation framework * Remove fold presets - dumb LLM idea, unused * Drop more "undeform" code; unused, was for ray marching, which does not work well * Fix reflection energy compensation; was using cloth math, which makes things too bright --- pbr.cginc | 3 --- 1 file changed, 3 deletions(-) (limited to 'pbr.cginc') diff --git a/pbr.cginc b/pbr.cginc index b7392f7..c8e58c8 100755 --- a/pbr.cginc +++ b/pbr.cginc @@ -146,8 +146,6 @@ void apply_marble(float3 world_pos, inout float3 albedo) { Pbr getPbr(v2f i) { Pbr pbr = (Pbr) 0; - instancing_frag(i); - float3 n = normalize(i.normal); float3 t = normalize(i.tangent.xyz); t = normalize(t - n * dot(n, t)); // Gram-Schmidt to avoid skew @@ -172,7 +170,6 @@ Pbr getPbr(v2f i) { 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); -- cgit v1.2.3