don't use per-pixel lighting for particles/visualthinkers

This commit is contained in:
Ricardo Luís Vaz Silva 2025-05-17 11:46:20 -03:00 committed by Nash Muhandes
commit 56e94cc268

View file

@ -111,6 +111,8 @@ void HWSprite::DrawSprite(HWDrawInfo *di, FRenderState &state, bool translucent)
{
int gl_spritelight = get_gl_spritelight();
if(!actor && gl_spritelight > 1) gl_spritelight = 1;
state.SetShadeVertex(gl_spritelight == 1);
bool additivefog = false;
bool foglayer = false;