mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'fullbright-boosters' into 'master'
Fullbright boosters See merge request KartKrew/Kart!205
This commit is contained in:
commit
b3a1bb6064
2 changed files with 18 additions and 2 deletions
|
|
@ -3564,6 +3564,9 @@ static void HWR_Subsector(size_t num)
|
||||||
|
|
||||||
sub->sector->extra_colormap = gr_frontsector->extra_colormap;
|
sub->sector->extra_colormap = gr_frontsector->extra_colormap;
|
||||||
|
|
||||||
|
//R_PlaneLightOverride(gr_frontsector, false, &floorlightlevel);
|
||||||
|
//R_PlaneLightOverride(gr_frontsector, true, &ceilinglightlevel);
|
||||||
|
|
||||||
// render floor ?
|
// render floor ?
|
||||||
#ifdef DOPLANES
|
#ifdef DOPLANES
|
||||||
// yeah, easy backface cull! :)
|
// yeah, easy backface cull! :)
|
||||||
|
|
|
||||||
17
src/r_bsp.c
17
src/r_bsp.c
|
|
@ -57,6 +57,16 @@ static boolean R_NoEncore(sector_t *sector, boolean ceiling)
|
||||||
return ((boolean)(sector->flags & SF_FLIPSPECIAL_FLOOR));
|
return ((boolean)(sector->flags & SF_FLIPSPECIAL_FLOOR));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void R_PlaneLightOverride(sector_t *sector, boolean ceiling, INT32 *lightlevel)
|
||||||
|
{
|
||||||
|
if (GETSECSPECIAL(sector->special, 4) == 6) // Fullbright sneaker panels
|
||||||
|
{
|
||||||
|
if ((ceiling && (sector->flags & SF_FLIPSPECIAL_CEILING))
|
||||||
|
|| (!ceiling && (sector->flags & SF_FLIPSPECIAL_FLOOR)))
|
||||||
|
*lightlevel = 255;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// R_ClearDrawSegs
|
// R_ClearDrawSegs
|
||||||
//
|
//
|
||||||
|
|
@ -895,6 +905,9 @@ static void R_Subsector(size_t num)
|
||||||
|
|
||||||
sub->sector->extra_colormap = frontsector->extra_colormap;
|
sub->sector->extra_colormap = frontsector->extra_colormap;
|
||||||
|
|
||||||
|
R_PlaneLightOverride(frontsector, false, &floorlightlevel);
|
||||||
|
R_PlaneLightOverride(frontsector, true, &ceilinglightlevel);
|
||||||
|
|
||||||
if (((
|
if (((
|
||||||
#ifdef ESLOPE
|
#ifdef ESLOPE
|
||||||
frontsector->f_slope ? P_GetZAt(frontsector->f_slope, viewx, viewy) :
|
frontsector->f_slope ? P_GetZAt(frontsector->f_slope, viewx, viewy) :
|
||||||
|
|
@ -923,8 +936,8 @@ static void R_Subsector(size_t num)
|
||||||
|| (frontsector->heightsec != -1
|
|| (frontsector->heightsec != -1
|
||||||
&& sectors[frontsector->heightsec].floorpic == skyflatnum)))
|
&& sectors[frontsector->heightsec].floorpic == skyflatnum)))
|
||||||
{
|
{
|
||||||
ceilingplane = R_FindPlane(frontsector->ceilingheight, frontsector->ceilingpic,
|
ceilingplane = R_FindPlane(frontsector->ceilingheight, frontsector->ceilingpic, ceilinglightlevel,
|
||||||
ceilinglightlevel, frontsector->ceiling_xoffs, frontsector->ceiling_yoffs, frontsector->ceilingpic_angle,
|
frontsector->ceiling_xoffs, frontsector->ceiling_yoffs, frontsector->ceilingpic_angle,
|
||||||
ceilingcolormap, NULL
|
ceilingcolormap, NULL
|
||||||
#ifdef POLYOBJECTS_PLANES
|
#ifdef POLYOBJECTS_PLANES
|
||||||
, NULL
|
, NULL
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue