diff options
Diffstat (limited to 'intern/cycles/util/util_math.h')
-rw-r--r-- | intern/cycles/util/util_math.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h index f48625ec95d..2262f8fdbb7 100644 --- a/intern/cycles/util/util_math.h +++ b/intern/cycles/util/util_math.h @@ -1472,7 +1472,7 @@ ccl_device_inline float2 map_to_tube(const float3 co) len = sqrtf(co.x * co.x + co.y * co.y); if(len > 0.0f) { u = (1.0f - (atan2f(co.x / len, co.y / len) / M_PI_F)) * 0.5f; - v = (co.x + 1.0f) * 0.5f; + v = (co.z + 1.0f) * 0.5f; } else { u = v = 0.0f; |