From 13da14e91566132476ceb4548e95766265efd0e6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 18 May 2016 22:20:18 +0200 Subject: [PATCH] - disable dynamic lights on additively blended surfaces because it doesn't look good at all. --- src/gl/scene/gl_flats.cpp | 2 ++ src/gl/scene/gl_walls_draw.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gl/scene/gl_flats.cpp b/src/gl/scene/gl_flats.cpp index cbc5d34511..5164e06766 100644 --- a/src/gl/scene/gl_flats.cpp +++ b/src/gl/scene/gl_flats.cpp @@ -120,6 +120,8 @@ void GLFlat::SetupSubsectorLights(int pass, subsector_t * sub, int *dli) { Plane p; + if (renderstyle == STYLE_Add) return; // no lights on additively blended surfaces. + if (dli != NULL && *dli != -1) { gl_RenderState.ApplyLightIndex(GLRenderer->mLights->GetIndex(*dli)); diff --git a/src/gl/scene/gl_walls_draw.cpp b/src/gl/scene/gl_walls_draw.cpp index a7cd23d42e..20d1709779 100644 --- a/src/gl/scene/gl_walls_draw.cpp +++ b/src/gl/scene/gl_walls_draw.cpp @@ -73,6 +73,8 @@ FDynLightData lightdata; void GLWall::SetupLights() { + if (RenderStyle == STYLE_Add) return; // no lights on additively blended surfaces. + // check for wall types which cannot have dynamic lights on them (portal types never get here so they don't need to be checked.) switch (type) {