From 6ac3da1b0bd363d70c2f6e4b7b921f2f929dedac Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 12 Oct 2025 15:00:47 -0700 Subject: add uv scroll, aniso16, and finish tubes --- custom31.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'custom31.slang') 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. -- cgit v1.2.3