From fe19aec05949a801e152e1052aeff5f27fbb02ff Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 11 Jun 2020 12:42:31 +0200 Subject: [PATCH] - backend update from Raze. --- src/common/engine/m_joy.cpp | 1 + src/common/rendering/hwrenderer/data/hw_renderstate.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/common/engine/m_joy.cpp b/src/common/engine/m_joy.cpp index 107560d4d..c20b406c7 100644 --- a/src/common/engine/m_joy.cpp +++ b/src/common/engine/m_joy.cpp @@ -38,6 +38,7 @@ #include "gameconfigfile.h" #include "d_event.h" #include "cmdlib.h" +#include "printf.h" // MACROS ------------------------------------------------------------------ diff --git a/src/common/rendering/hwrenderer/data/hw_renderstate.h b/src/common/rendering/hwrenderer/data/hw_renderstate.h index 07265ca29..1b953b37d 100644 --- a/src/common/rendering/hwrenderer/data/hw_renderstate.h +++ b/src/common/rendering/hwrenderer/data/hw_renderstate.h @@ -500,6 +500,12 @@ public: mStreamData.uTextureBlendColor = texfx->BlendColor; } } + void SetTextureColors(float* modColor, float* addColor, float* blendColor) + { + mStreamData.uTextureAddColor.SetFlt(addColor[0], addColor[1], addColor[2], addColor[3]); + mStreamData.uTextureModulateColor.SetFlt(modColor[0], modColor[1], modColor[2], modColor[3]); + mStreamData.uTextureBlendColor.SetFlt(blendColor[0], blendColor[1], blendColor[2], blendColor[3]); + } void SetFog(PalEntry c, float d) {