Bug #2073: Red value used instead of Green for World sky (render and preview).

Ton will probably have a good laugh when he'll see what the error was. ;)
This commit is contained in:
2004-12-30 05:48:36 +00:00
parent c635a0eead
commit f7d6ad8a8f

View 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. */