diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-04-30 12:21:32 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-04-30 12:27:16 +0300 |
commit | 41d817f15da2bfb0423612d6ba1d464e8a983bb9 (patch) | |
tree | 53b1e5e1114bd7d7bd1180d3887490cac38f19e6 | |
parent | aa4c97faa3666a9417782e598464d0ad2f66dee5 (diff) |
Fix T44548: Cycles Tube Mapping off / not compatible with BI
Was a typo in original implementation, probably a result of some code reshuffle
happened for optimization reasons.
-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; |