diff options
| author | yum <yum.food.vr@gmail.com> | 2025-01-14 21:01:26 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-01-14 21:01:28 -0800 |
| commit | 333562544ef1b71a7a4d7ce1ece533bef98ce0da (patch) | |
| tree | c9620943f8a772db0da777e1aa759b30adb17925 /tooner_outline_pass.cginc | |
| parent | ab441140208d6dd8317f328f40a25c6054f1a304 (diff) | |
im going to kill myself
attempt to fix hypotrochoid normals
key insight is that multiplying normal by transpose(invert(jacobian)) of
transform should work, but it fucking doesn't
Diffstat (limited to 'tooner_outline_pass.cginc')
| -rw-r--r-- | tooner_outline_pass.cginc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tooner_outline_pass.cginc b/tooner_outline_pass.cginc index a318c5f..02b6497 100644 --- a/tooner_outline_pass.cginc +++ b/tooner_outline_pass.cginc @@ -36,15 +36,7 @@ v2f vert(appdata v) #if defined(_TROCHOID) { -#define TAU PI * 2.0 - float theta = v.uv0.x * TAU; - float r0 = length(v.vertex.xyz); - - float x = v.vertex.x; - float y = v.vertex.y; - float z = v.vertex.z; - - v.vertex.xyz = trochoid_map(theta, r0, z); + v.vertex.xyz = cyl2_to_troch_map(cyl_to_cyl2_map(cart_to_cyl_map(v.vertex.xyz))); } #endif |
