- removed gl dependencies from gl_sky.cpp by moving some data into other places.
This commit is contained in:
parent
59477362d9
commit
cc926dec1e
9 changed files with 21 additions and 24 deletions
|
|
@ -51,6 +51,7 @@ bool skystretch;
|
|||
|
||||
fixed_t sky1cyl, sky2cyl;
|
||||
double sky1pos, sky2pos;
|
||||
float hw_sky1pos, hw_sky2pos;
|
||||
|
||||
CUSTOM_CVAR(Int, testskyoffset, 0, 0)
|
||||
{
|
||||
|
|
@ -170,5 +171,10 @@ void R_UpdateSky (uint64_t mstime)
|
|||
double ms = (double)mstime * FRACUNIT;
|
||||
sky1pos = ms * level.skyspeed1;
|
||||
sky2pos = ms * level.skyspeed2;
|
||||
|
||||
// The hardware renderer uses a different value range and clamps it to a single rotation
|
||||
hw_sky1pos = (float)(fmod((double(mstime) * level.skyspeed1), 1024.) * (90. / 256.));
|
||||
hw_sky2pos = (float)(fmod((double(mstime) * level.skyspeed2), 1024.) * (90. / 256.));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue