From b9d5965c0366fd7777c3627b9fbf89c8526ac0ec Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 01:13:09 +0100 Subject: World tint: colour dynamic props through m_clrRender Prop model materials (VertexLitGeneric) ignore IMaterial::ColorModulate: the engine feeds StudioRender the per-entity render colour (m_clrRender) on every draw, so the material-side tint never showed on crates and other props. Resolve m_clrRender from DT_BaseEntity and, every 10 ms while World tint and Props are enabled, write the prop colour into every entity whose model is under models/props. Restore white once when disabled. --- src/menu.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/menu.cpp') diff --git a/src/menu.cpp b/src/menu.cpp index 7ffc84a..0ce6c05 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -815,6 +815,7 @@ void outer_draw() { poll_keyboard(); fullbright_update(); world_tint_update(); + prop_tint_update(); fog_update(); gui_handle_input(); // HL2H_DRAW_TEST=1 draws a probe rect without needing the GUI open -- cgit v1.2.3