* 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:
gez 2010-11-07 17:32:27 +00:00
parent e0becf97db
commit d2f27f3fcb
6 changed files with 15 additions and 7 deletions

View file

@ -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);