Cycles:
[blender.git] / intern / cycles / kernel / kernel_projection.h
index 6516b9e4d82bb56230d4465d0eb25d2325106ce9..d9520de7956cfce75d6dbad80d80eec4b02cce32 100644 (file)
@@ -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);