diff options
author | Thomas Dinges <blender@dingto.org> | 2013-06-14 18:29:00 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-06-14 18:29:00 +0400 |
commit | 88b30ccb8cc2552ec6ca118cdcab4f75d5fb19b5 (patch) | |
tree | 54b965dcf2bc40d8d39549b2890f84b01433cf22 /intern/cycles/kernel/kernel_projection.h | |
parent | cc3476b07eacae29ab34c2f2bdbca8af63b10e78 (diff) |
Cycles:
* Style cleanup for M_PI constants.
* Move Wireframe node into __EXTRA_NODES__ define
Diffstat (limited to 'intern/cycles/kernel/kernel_projection.h')
-rw-r--r-- | intern/cycles/kernel/kernel_projection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_projection.h b/intern/cycles/kernel/kernel_projection.h index 6516b9e4d82..d9520de7956 100644 --- a/intern/cycles/kernel/kernel_projection.h +++ b/intern/cycles/kernel/kernel_projection.h @@ -57,7 +57,7 @@ __device float3 spherical_to_direction(float theta, float phi) __device float2 direction_to_equirectangular(float3 dir) { - float u = -atan2f(dir.y, dir.x)/(2.0f*M_PI_F) + 0.5f; + float u = -atan2f(dir.y, dir.x)/(M_2PI_F) + 0.5f; float v = atan2f(dir.z, hypotf(dir.x, dir.y))/M_PI_F + 0.5f; return make_float2(u, v); |