From 5629d437dae33c2cdb283a139f8632fb613c0a43 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 8 Apr 2025 19:05:47 -0700 Subject: Fix backface normals, fix depth writing precision issues --- tessellation.cginc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tessellation.cginc') diff --git a/tessellation.cginc b/tessellation.cginc index af4bd3b..cc47057 100644 --- a/tessellation.cginc +++ b/tessellation.cginc @@ -141,7 +141,7 @@ v2f domain( #endif o.pos = UnityObjectToClipPos(o.objPos); - o.worldPos = mul(unity_ObjectToWorld, float4(o.objPos, 1.0)).xyz; + o.worldPos = mul(unity_ObjectToWorld, o.objPos).xyz; o.eyeVec.xyz = normalize(o.worldPos - _WorldSpaceCameraPos); o.eyeVec.w = 1; -- cgit v1.2.3