From b36444ca1c8ce895982f2d8ece49c53965c411bb Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Tue, 7 Feb 2017 20:43:41 +0100 Subject: [PATCH] Fix camera shader colormap (invulnerability effect) not getting applied to hardware accelerated player sprites --- src/swrenderer/things/r_playersprite.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/swrenderer/things/r_playersprite.cpp b/src/swrenderer/things/r_playersprite.cpp index 468355095..929acab53 100644 --- a/src/swrenderer/things/r_playersprite.cpp +++ b/src/swrenderer/things/r_playersprite.cpp @@ -529,6 +529,10 @@ namespace swrenderer { accelSprite.special = static_cast(vis.Light.BaseColormap); } + else if (CameraLight::Instance()->ShaderColormap()) + { + accelSprite.special = CameraLight::Instance()->ShaderColormap(); + } else if (colormap_to_use->Color == PalEntry(255, 255, 255) && colormap_to_use->Desaturate == 0) {