summaryrefslogtreecommitdiffstats
path: root/custom30.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-06-03 22:37:12 -0700
committeryum <yum.food.vr@gmail.com>2025-06-03 22:37:35 -0700
commit07d204fd6631ae0d0bfec16c8d057cd39c5ab810 (patch)
tree1721b235fd8a20c8efbbdbaabb47c9841d90225c /custom30.cginc
parentf53c49c69ee42917e3789bbfe792c9d53c287e76 (diff)
Continue work on fog
Fix screen uv calculation
Diffstat (limited to 'custom30.cginc')
-rw-r--r--custom30.cginc4
1 files changed, 3 insertions, 1 deletions
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