Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-04-30 12:21:32 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-04-30 12:27:16 +0300
commit41d817f15da2bfb0423612d6ba1d464e8a983bb9 (patch)
tree53b1e5e1114bd7d7bd1180d3887490cac38f19e6 /intern
parentaa4c97faa3666a9417782e598464d0ad2f66dee5 (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.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/util/util_math.h2
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;