Fixed skybox clipping: things in a skybox shouldn't be clipped against current portal. Fixed: portal inside of a skybox sets CurrentPortalInSkybox to false.
This commit is contained in:
parent
4d518a220c
commit
605fce9008
3 changed files with 368 additions and 366 deletions
|
|
@ -766,6 +766,7 @@ void R_EnterPortal (PortalDrawseg* pds, int depth)
|
|||
|
||||
// some portals have height differences, account for this here
|
||||
R_3D_EnterSkybox(); // push 3D floor height map
|
||||
CurrentPortalInSkybox = false; // first portal in a skybox should set this variable to false for proper clipping in skyboxes.
|
||||
|
||||
// first pass, set clipping
|
||||
memcpy (ceilingclip + pds->x1, &pds->ceilingclip[0], pds->len*sizeof(*ceilingclip));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue