summaryrefslogtreecommitdiffstats
path: root/3ner.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-11-04 21:50:42 -0800
committeryum <yum.food.vr@gmail.com>2025-11-04 21:50:42 -0800
commit672a7acca1f0401de7ac0ac94d3379081fa363e6 (patch)
tree1fed9ab4791de35d9fdc69bdff437fea2223349e /3ner.cginc
parentac78ce59232f698dfd721b0048336cd346612613 (diff)
begin work on marching in vert/domain shaders (NOT WORKING)
Diffstat (limited to '3ner.cginc')
-rw-r--r--3ner.cginc3
1 files changed, 2 insertions, 1 deletions
diff --git a/3ner.cginc b/3ner.cginc
index e45e0cd..83c89ff 100644
--- a/3ner.cginc
+++ b/3ner.cginc
@@ -251,7 +251,8 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace) : SV_Target {
#endif
#if defined(_RAY_MARCHING)
- ray_march(i);
+ const bool is_fragment = true;
+ ray_march(i, is_fragment);
#elif defined(_VERTEX_DEFORMATION_FRAGMENT_NORMALS)
deform_normal(i.objPos_orig, i.normal, i.tangent.xyz);
#endif