diff options
| author | yum <yum.food.vr@gmail.com> | 2026-02-16 16:32:00 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-02-16 16:36:24 -0800 |
| commit | 864c2ba12dc864d9cb55cb797ba8919bee5b5913 (patch) | |
| tree | aa6cd98a71e4ef05d23f762127d3759a4a3e3e21 /interpolators.cginc | |
| parent | 6504b2c4631bab477838548167b88c1052eac263 (diff) | |
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
Diffstat (limited to 'interpolators.cginc')
| -rwxr-xr-x | interpolators.cginc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/interpolators.cginc b/interpolators.cginc index 6611039..88a4649 100755 --- a/interpolators.cginc +++ b/interpolators.cginc @@ -32,7 +32,9 @@ struct v2f { float4 tangent : TEXCOORD6; UNITY_LIGHTING_COORDS(7,8) // TODO figure out some metaprogramming or preprocessor to better allocate optional texcoords :( -#if defined(_VERTEX_DEFORMATION_FRAGMENT_NORMALS) || defined(_VERTEX_DEFORMATION_TESSELLATION) +#if defined(_VERTEX_DEFORMATION_FRAGMENT_NORMALS) || \ + defined(_VERTEX_DEFORMATION_TESSELLATION) || \ + defined(_IMPOSTORS) && defined(_INSTANCE_TEXTURE_OFFSET) float3 objPos_orig : TEXCOORD9; #endif #if defined(_RAY_MARCHING_BAKED_ORIGINS) |
