svn merge ^/trunk/blender -r42722:42742
[blender.git] / source / blender / render / intern / source / render_texture.c
index 7c6efc9a138a34cc369ad8d8c6ea0123cbe3e1fe..849e0ef428a0f3684dafd41be796a679dff13d07 100644 (file)
@@ -3083,6 +3083,12 @@ void do_sky_tex(const float rco[3], float lo[3], const float dxyview[2], float h
                                        continue;
                                }
                                break;
+                       case TEXCO_EQUIRECTMAP:
+                               tempvec[0]= atan2f(lo[0], lo[2]) / (float)M_PI;
+                               tempvec[1]= 1.0f - 2.0f*saacos(lo[1]) / (float)M_PI;
+                               tempvec[2]= 0.0f;
+                               co= tempvec;
+                               break;
                        case TEXCO_OBJECT:
                                if(mtex->object) {
                                        copy_v3_v3(tempvec, lo);