Remove light probes completely and make decals use the lightmap

This commit is contained in:
Magnus Norddahl 2022-09-21 22:43:43 +02:00
commit d3ed7be087
7 changed files with 48 additions and 159 deletions

View file

@ -401,9 +401,9 @@ void D_Render(std::function<void()> action, bool interpolate)
for (auto Level : AllLevels())
{
// Check for the presence of dynamic lights at the start of the frame once.
if ((gl_lights && vid_rendermode == 4) || (r_dynlights && vid_rendermode != 4) || Level->LightProbes.Size() > 0)
if ((gl_lights && vid_rendermode == 4) || (r_dynlights && vid_rendermode != 4) || Level->LMTextureCount > 0)
{
Level->HasDynamicLights = Level->lights || Level->LightProbes.Size() > 0;
Level->HasDynamicLights = Level->lights || Level->LMTextureCount > 0;
}
else Level->HasDynamicLights = false; // lights are off so effectively we have none.
if (interpolate) Level->interpolator.DoInterpolations(I_GetTimeFrac());