mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-03 18:51:22 +00:00
* Updated to ZDoom r2993:
- Changed skybox code to use the alpha from the sector plane. - Removed alpha from skybox viewpoints. git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1075 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
e0becf97db
commit
d2f27f3fcb
6 changed files with 15 additions and 7 deletions
|
@ -561,6 +561,7 @@ visplane_t *R_FindPlane (const secplane_t &height, FTextureID picnum, int lightl
|
|||
plane = height;
|
||||
isskybox = false;
|
||||
sky = 0; // not skyflatnum so it can't be a sky
|
||||
skybox = NULL;
|
||||
alpha = FRACUNIT;
|
||||
}
|
||||
|
||||
|
@ -728,6 +729,7 @@ visplane_t *R_CheckPlane (visplane_t *pl, int start, int stop)
|
|||
new_pl->viewz = pl->viewz;
|
||||
new_pl->viewangle = pl->viewangle;
|
||||
new_pl->sky = pl->sky;
|
||||
new_pl->alpha = pl->alpha;
|
||||
pl = new_pl;
|
||||
pl->minx = start;
|
||||
pl->maxx = stop;
|
||||
|
@ -1178,7 +1180,6 @@ void R_DrawSkyBoxes ()
|
|||
viewxStack.Push (viewx);
|
||||
viewyStack.Push (viewy);
|
||||
viewzStack.Push (viewz);
|
||||
pl->alpha = sky->PlaneAlpha;
|
||||
visplaneStack.Push (pl);
|
||||
|
||||
R_RenderBSPNode (nodes + numnodes - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue