summaryrefslogtreecommitdiffstats
path: root/3ner.cginc
diff options
context:
space:
mode:
Diffstat (limited to '3ner.cginc')
-rw-r--r--3ner.cginc7
1 files changed, 1 insertions, 6 deletions
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