Sky textures were using wrong pixel-size vectors, so images got sampled

totally blurred.

Thanks plumiferos team for the poke!
This commit is contained in:
Ton Roosendaal
2006-02-06 19:29:37 +00:00
parent b5cbd1c4e6
commit 93dee282be

View 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;
}
}