diff options
| author | yum <yum.food.vr@gmail.com> | 2025-04-08 19:05:47 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-04-08 19:05:47 -0700 |
| commit | 5629d437dae33c2cdb283a139f8632fb613c0a43 (patch) | |
| tree | dca5b1eb419f557c52cd655626f0ea826f005055 /tessellation.cginc | |
| parent | 40c33d438afa036acfcbc58ca4078f25db1624f2 (diff) | |
Fix backface normals, fix depth writing precision issues
Diffstat (limited to 'tessellation.cginc')
| -rw-r--r-- | tessellation.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
