diff options
| author | yum <yum.food.vr@gmail.com> | 2025-11-02 11:21:02 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-11-02 11:21:02 -0800 |
| commit | 7fd93cd70100e0636ffae430a7ab1904788fb5f3 (patch) | |
| tree | ed9d67e4d850186ed4b18f13d5d4dfef5b043fcc /3ner.cginc | |
| parent | 93f27e3a8545fef6ccc293d033e5f422ed821215 (diff) | |
raymarching tweaks + add overstepping
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 |
