[bug] Godrays suck

nargil

27-03-2009 17:58:04

No, actually they dont, but they do if the sunpos.y ~= 0



And by saying around 0 I mean even 1000.

I got around it by:
if(sunpos.y <0 ) sunpos.y = std::min(sunpos.y,-3000.0f);
else sunpos.y = std::max(sunpos.y,3000.0f);

but there is a small jump, someone could see.