mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
- added support for the skyoffset property that had been settable in ANIMDEFS for GZDoom. This will only have an effect in sky mode 2.
This commit is contained in:
parent
19d070c9bd
commit
4b956a2f2b
1 changed files with 7 additions and 1 deletions
|
@ -48,6 +48,11 @@ bool skystretch;
|
||||||
fixed_t sky1cyl, sky2cyl;
|
fixed_t sky1cyl, sky2cyl;
|
||||||
double sky1pos, sky2pos;
|
double sky1pos, sky2pos;
|
||||||
|
|
||||||
|
CUSTOM_CVAR(Int, testskyoffset, 0, 0)
|
||||||
|
{
|
||||||
|
R_InitSkyMap();
|
||||||
|
}
|
||||||
|
|
||||||
// [RH] Stretch sky texture if not taller than 128 pixels?
|
// [RH] Stretch sky texture if not taller than 128 pixels?
|
||||||
// Also now controls capped skies. 0 = normal, 1 = stretched, 2 = capped
|
// Also now controls capped skies. 0 = normal, 1 = stretched, 2 = capped
|
||||||
CUSTOM_CVAR (Int, r_skymode, 2, CVAR_ARCHIVE)
|
CUSTOM_CVAR (Int, r_skymode, 2, CVAR_ARCHIVE)
|
||||||
|
@ -55,6 +60,7 @@ CUSTOM_CVAR (Int, r_skymode, 2, CVAR_ARCHIVE)
|
||||||
R_InitSkyMap ();
|
R_InitSkyMap ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int freelookviewheight;
|
int freelookviewheight;
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
@ -108,7 +114,7 @@ void R_InitSkyMap ()
|
||||||
}
|
}
|
||||||
else if (skyheight > 200)
|
else if (skyheight > 200)
|
||||||
{
|
{
|
||||||
skytexturemid = (200 - skyheight) * skytex1->Scale.Y;
|
skytexturemid = (200 - skyheight) * skytex1->Scale.Y +(r_skymode == 2 ? skytex1->SkyOffset + testskyoffset : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (viewwidth != 0 && viewheight != 0)
|
if (viewwidth != 0 && viewheight != 0)
|
||||||
|
|
Loading…
Reference in a new issue