Skymist is a third sky layer with transparency, and adopts the fade color and skyfog density. Size not connected to SKY1 or SKY2. Works with 6-sided skyboxes. Three template pngs (skymist1, 2, & 3) all 1x544 pixels, 8-bit grayscale with transparency are part of gzdoom.pk3 for general usage. Can supply custom lump through mapinfo. Console command 'skymisttoggle' shows the effect (make sure fade has a non-zero color in mapinfo and skyfog has non-zero density). Oh, and skyfog now works with 6-sided skyboxes.
This commit is contained in:
parent
31cd741cb0
commit
e9a067dd65
14 changed files with 80 additions and 12 deletions
|
|
@ -212,6 +212,10 @@ static void PrecacheLevel(FLevelLocals *Level)
|
|||
{
|
||||
AddToList(hitlist.Data(), Level->skytexture2, FTextureManager::HIT_Sky);
|
||||
}
|
||||
if (Level->skymisttexture.isValid())
|
||||
{
|
||||
AddToList(hitlist.Data(), Level->skymisttexture, FTextureManager::HIT_Sky);
|
||||
}
|
||||
|
||||
static const BITFIELD checkForTextureFlags = FTextureManager::TEXMAN_Overridable | FTextureManager::TEXMAN_TryAny | FTextureManager::TEXMAN_ReturnFirst | FTextureManager::TEXMAN_DontCreate;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue