diff options
| author | yum <yum.food.vr@gmail.com> | 2025-11-01 11:45:25 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-11-01 11:45:25 -0700 |
| commit | 12c223b5b8bf1860d77f41551cf9e5374196aed7 (patch) | |
| tree | 093233b97e2f4f91377de17817ba5f5fc45143f3 /ray_marching.cginc | |
| parent | 2edd7a2333ebc36f19f8726cb2d2f79aa501cb18 (diff) | |
meow
Diffstat (limited to 'ray_marching.cginc')
| -rw-r--r-- | ray_marching.cginc | 4 |
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; |
