From 7fd93cd70100e0636ffae430a7ab1904788fb5f3 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 2 Nov 2025 11:21:02 -0800 Subject: raymarching tweaks + add overstepping --- 3ner.cginc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to '3ner.cginc') diff --git a/3ner.cginc b/3ner.cginc index 24cf52d..d5f380f 100644 --- a/3ner.cginc +++ b/3ner.cginc @@ -251,12 +251,7 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace) : SV_Target { #endif #if defined(_RAY_MARCHING) - // TODO consider doing assignment inside function. It would clean up this - // call site. - RayMarchResult res = ray_march(i); - i.objPos = res.objPos; - i.normal = res.objNorm; - i.tangent.xyz = res.objTan; + ray_march(i); #elif defined(_VERTEX_DEFORMATION_FRAGMENT_NORMALS) deform_normal(i.objPos_orig, i.normal, i.tangent.xyz); #endif -- cgit v1.2.3