From 07d204fd6631ae0d0bfec16c8d057cd39c5ab810 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 3 Jun 2025 22:37:12 -0700 Subject: Continue work on fog Fix screen uv calculation --- custom30.cginc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'custom30.cginc') diff --git a/custom30.cginc b/custom30.cginc index 6e81c44..2d407ca 100644 --- a/custom30.cginc +++ b/custom30.cginc @@ -214,7 +214,9 @@ Custom30Output BasicWedge(v2f i) { } Custom30Output o; - //clip(epsilon - d); +#if !defined(_DEPTH_PREPASS) + clip(epsilon - d); +#endif float3 objPos = ro + rd * d_acc; o.objPos = objPos; // Transform from SDF space back to object space -- cgit v1.2.3