diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-15 19:21:07 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-15 19:21:58 +0300 |
commit | b8dd68cfc401c04fbc272bd6efd9bd1ffbfe810c (patch) | |
tree | dc8df75494b4e820bc2fb125b232f0c048a31951 | |
parent | 1568a4b2958c107a7bc4cb77da1a10df3f13d7f7 (diff) |
Cycles: Fix equiangular textures after recent commit
Just wrong constant used, names are indeed too close to each other.
-rw-r--r-- | intern/cycles/kernel/kernel_projection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_projection.h b/intern/cycles/kernel/kernel_projection.h index ab63f460371..bd18fd21354 100644 --- a/intern/cycles/kernel/kernel_projection.h +++ b/intern/cycles/kernel/kernel_projection.h @@ -76,12 +76,12 @@ ccl_device float3 equirectangular_range_to_direction(float u, float v, float4 ra ccl_device float2 direction_to_equirectangular(float3 dir) { - return direction_to_equirectangular_range(dir, make_float4(-M_2_PI_F, M_PI_F, -M_PI_F, M_PI_F)); + return direction_to_equirectangular_range(dir, make_float4(-M_2PI_F, M_PI_F, -M_PI_F, M_PI_F)); } ccl_device float3 equirectangular_to_direction(float u, float v) { - return equirectangular_range_to_direction(u, v, make_float4(-M_2_PI_F, M_PI_F, -M_PI_F, M_PI_F)); + return equirectangular_range_to_direction(u, v, make_float4(-M_2PI_F, M_PI_F, -M_PI_F, M_PI_F)); } /* Fisheye <-> Cartesian direction */ |