From 715bf39c13300dc262b7030a308502000aa6cd9e Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 20 Jun 2025 23:26:52 -0700 Subject: work on fog & custom30 stuff --- tessellation.cginc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tessellation.cginc') 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; } -- cgit v1.2.3