diff options
| author | yum <yum.food.vr@gmail.com> | 2025-10-12 15:00:47 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-10-12 15:00:47 -0700 |
| commit | 6ac3da1b0bd363d70c2f6e4b7b921f2f929dedac (patch) | |
| tree | cc09ebbdd7bd101bccd2f9d594279f5f66370c63 /custom31.slang | |
| parent | d2090f73f3e4f08cdbd3c3b82eb7f3ba9f459dd0 (diff) | |
add uv scroll, aniso16, and finish tubes
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. |
