Plane dynlight setup
This commit is contained in:
parent
5cfe0cc955
commit
fcbacf8cac
5 changed files with 120 additions and 0 deletions
|
|
@ -1129,6 +1129,9 @@ void R_Subsector (subsector_t *sub)
|
|||
portal
|
||||
) : NULL;
|
||||
|
||||
if (ceilingplane)
|
||||
R_AddPlaneLights(ceilingplane, frontsector->lighthead);
|
||||
|
||||
if (fixedlightlev < 0 && frontsector->e && frontsector->e->XFloor.lightlist.Size())
|
||||
{
|
||||
light = P_GetPlaneLight(frontsector, &frontsector->floorplane, false);
|
||||
|
|
@ -1166,6 +1169,9 @@ void R_Subsector (subsector_t *sub)
|
|||
portal
|
||||
) : NULL;
|
||||
|
||||
if (floorplane)
|
||||
R_AddPlaneLights(floorplane, frontsector->lighthead);
|
||||
|
||||
// kg3D - fake planes rendering
|
||||
if (r_3dfloors && frontsector->e && frontsector->e->XFloor.ffloors.Size())
|
||||
{
|
||||
|
|
@ -1223,6 +1229,9 @@ void R_Subsector (subsector_t *sub)
|
|||
frontsector->sky,
|
||||
NULL);
|
||||
|
||||
if (floorplane)
|
||||
R_AddPlaneLights(floorplane, frontsector->lighthead);
|
||||
|
||||
R_FakeDrawLoop(sub);
|
||||
fake3D = 0;
|
||||
frontsector = sub->sector;
|
||||
|
|
@ -1284,6 +1293,9 @@ void R_Subsector (subsector_t *sub)
|
|||
frontsector->sky,
|
||||
NULL);
|
||||
|
||||
if (ceilingplane)
|
||||
R_AddPlaneLights(ceilingplane, frontsector->lighthead);
|
||||
|
||||
R_FakeDrawLoop(sub);
|
||||
fake3D = 0;
|
||||
frontsector = sub->sector;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue