Sky textures were using wrong pixel-size vectors, so images got sampled
authorTon Roosendaal <ton@blender.org>
Mon, 6 Feb 2006 19:29:37 +0000 (19:29 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 6 Feb 2006 19:29:37 +0000 (19:29 +0000)
totally blurred.

Thanks plumiferos team for the poke!

source/blender/render/intern/source/pixelshading.c

index 53bce2c..934d6e0 100644 (file)
@@ -521,8 +521,8 @@ void shadeSkyPixel(float *collector, float fx, float fy, float *rco)
                        fac= Normalise(view);
                        
                        if(R.wrld.skytype & WO_SKYTEX) {
-                               dxyview[0]= 1.0/fac;
-                               dxyview[1]= R.ycor/fac;
+                               dxyview[0]= -R.viewdx/fac;
+                               dxyview[1]= -R.viewdy/fac;
                        }
                }