mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
- make softpoly use the r_dynlights cvar
This commit is contained in:
parent
ff1eb7f3f2
commit
f8272287d2
2 changed files with 12 additions and 0 deletions
|
@ -269,6 +269,12 @@ void RenderPolyPlane::SetLightLevel(PolyRenderThread *thread, PolyDrawArgs &args
|
|||
|
||||
void RenderPolyPlane::SetDynLights(PolyRenderThread *thread, PolyDrawArgs &args, subsector_t *sub, bool ceiling)
|
||||
{
|
||||
if (!r_dynlights)
|
||||
{
|
||||
args.SetLights(nullptr, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
FLightNode *light_list = sub->lighthead;
|
||||
|
||||
auto cameraLight = PolyCameraLight::Instance();
|
||||
|
|
|
@ -374,6 +374,12 @@ void RenderPolyWall::Render(PolyRenderThread *thread)
|
|||
|
||||
void RenderPolyWall::SetDynLights(PolyRenderThread *thread, PolyDrawArgs &args)
|
||||
{
|
||||
if (!r_dynlights)
|
||||
{
|
||||
args.SetLights(nullptr, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
FLightNode *light_list = (LineSeg && LineSeg->sidedef) ? LineSeg->sidedef->lighthead : nullptr;
|
||||
|
||||
auto cameraLight = PolyCameraLight::Instance();
|
||||
|
|
Loading…
Reference in a new issue