diff options
| author | yum <yum.food.vr@gmail.com> | 2025-06-20 23:26:52 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-06-20 23:26:52 -0700 |
| commit | 715bf39c13300dc262b7030a308502000aa6cd9e (patch) | |
| tree | 7ac40c7afa19c7a7e1f84452e4e58381910cb592 /tessellation.cginc | |
| parent | 506d56be782d24f56d786b67d0f96f0c8646db6c (diff) | |
work on fog & custom30 stuff
Diffstat (limited to 'tessellation.cginc')
| -rw-r--r-- | tessellation.cginc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tessellation.cginc b/tessellation.cginc index e5302d3..b088334 100644 --- a/tessellation.cginc +++ b/tessellation.cginc @@ -152,10 +152,12 @@ v2f domain( o.eyeVec.xyz = o.worldPos - _WorldSpaceCameraPos; o.eyeVec.w = 1; - // TODO what about UNITY_LIGHTING_COORDS(7,8) and instance id and shit? - UNITY_TRANSFER_LIGHTING(o, DOMAIN_INTERP(_unity_lightcoords)); + UNITY_TRANSFER_LIGHTING(o, o.uv01.zw); UNITY_TRANSFER_INSTANCE_ID(patch[0], o); UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); +#if defined(SHADOW_CASTER_PASS) + TRANSFER_SHADOW_CASTER_NORMALOFFSET(o); +#endif return o; } |
