summaryrefslogtreecommitdiffstats
path: root/ray_marching.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'ray_marching.cginc')
-rw-r--r--ray_marching.cginc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ray_marching.cginc b/ray_marching.cginc
index 9c6653f..1efbdf4 100644
--- a/ray_marching.cginc
+++ b/ray_marching.cginc
@@ -32,8 +32,8 @@ RayMarchResult ray_march(v2f i) {
float3 rd_perp = i.normal * dot(i.normal, rd);
float3 rd_tan = rd - rd_perp;
float3 tmp = ro;
- deform_normal(tmp, rd_perp, rd_tan);
- rd = rd_perp + rd_tan;
+ undeform_normal(ro, rd_perp, rd_tan);
+ //rd = rd_perp + rd_tan;
#endif
const float kMinDist = 1e-3;