- Rewrote wide sky texture scaling again. This time, it should work for any

size textures at any scale. I also tried doing sky scrolling on the sky
  cylinder, but that didn't look so good, so I left it in screen space.


SVN r1932 (trunk)
This commit is contained in:
Randy Heit 2009-10-24 23:42:58 +00:00
commit f40462dfb4
5 changed files with 52 additions and 28 deletions

View file

@ -834,6 +834,6 @@ void R_UpdateAnimations (DWORD mstime)
// Scroll the sky
double ms = (double)mstime * FRACUNIT;
sky1pos = fixed_t(fmod (ms * level.skyspeed1, double(TexMan[sky1texture]->GetScaledWidth() << FRACBITS)));
sky2pos = fixed_t(fmod (ms * level.skyspeed2, double(TexMan[sky2texture]->GetScaledWidth() << FRACBITS)));
sky1pos = ms * level.skyspeed1;
sky2pos = ms * level.skyspeed2;
}