Bug #2073: Red value used instead of Green for World sky (render and preview).
authorMartin Poirier <theeth@yahoo.com>
Thu, 30 Dec 2004 05:48:36 +0000 (05:48 +0000)
committerMartin Poirier <theeth@yahoo.com>
Thu, 30 Dec 2004 05:48:36 +0000 (05:48 +0000)
Ton will probably have a good laugh when he'll see what the error was. ;)

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

index 193a6033470e83ae2555884ed3d627da8685f0b3..eac8e2ee149209ac886725dd0bfc49cc6da5c840 100644 (file)
@@ -689,8 +689,8 @@ void shadeSkyPixelFloat(float *colf, float *view, float *dxyview)
                blend= fabs(0.5+ view[1]);
        }
 
-       hor[0]= R.wrld.horr; hor[1]= R.wrld.horr; hor[2]= R.wrld.horb;
-       zen[0]= R.wrld.zenr; zen[1]= R.wrld.zenr; zen[2]= R.wrld.zenb;
+       hor[0]= R.wrld.horr; hor[1]= R.wrld.horg; hor[2]= R.wrld.horb;
+       zen[0]= R.wrld.zenr; zen[1]= R.wrld.zeng; zen[2]= R.wrld.zenb;
        
        /* Careful: SKYTEX and SKYBLEND are NOT mutually exclusive! If           */
        /* SKYBLEND is active, the texture and colour blend are added.           */