diff options
Diffstat (limited to 'custom31.slang')
| -rw-r--r-- | custom31.slang | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/custom31.slang b/custom31.slang index 1254800..61afe4a 100644 --- a/custom31.slang +++ b/custom31.slang @@ -99,7 +99,7 @@ public float3 plane_to_tube(float3 xyz, no_diff float t) { float z0 = xyz.z; float theta = x0 * PI; - float radius = min(1e3, (1.0f / (t * t))); + float radius = min(1e3, (1.0f / (t * t))) * sign(t) ; float x = sin(theta / radius) * radius * PI_RCP; // The z0 term here is required to make the jacobian invertible. |
