diff options
Diffstat (limited to '3ner.cginc')
| -rw-r--r-- | 3ner.cginc | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |
