From edba65625dd5823705619a2e682a99d6ad91ae8b Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 3 Nov 2026 23:32:16 +0100 Subject: World: add prop tint and fog override - World tint now also colours prop materials (models/props*) with their own colour, covering static props and prop_physics while leaving NPC, player and weapon materials untouched. - New Fog card: fog_override colour/start/end via ClientCmd, optional skybox fog, and a Remove fog mode. Restores the map fog (fog_override 0) when disabled and re-applies after level changes. - Config sections [worldtint] prop/colour keys and [fog]. --- src/gui.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/gui.cpp') diff --git a/src/gui.cpp b/src/gui.cpp index 9981f25..aa47868 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -401,6 +401,24 @@ static void build_cards() { add_toggle(tint, "Skybox", "Tint the skybox textures.", &g_tint_sky_on); add_color(tint, "Sky colour", "Click the swatch to open the picker.", g_tint_sky_rgb); + add_toggle(tint, "Props", + "Tint model materials under models/props (map props, static " + "and physics).", + &g_tint_prop_on); + add_color(tint, "Prop colour", "Click the swatch to open the picker.", + g_tint_prop_rgb); + + int fog = add_card(2, &g_fog, "Fog", + "Override the map's fog colour and distances.", true); + add_color(fog, "Colour", "Click the swatch to open the picker.", g_fog_rgb); + add_slider(fog, "Start", "Distance in units where fog starts.", 0, 8000, + &g_fog_start); + add_slider(fog, "End", "Distance in units where fog is fully opaque.", 0, + 20000, &g_fog_end); + add_toggle(fog, "Skybox fog", "Apply the same fog to the 3D skybox.", + &g_fog_skybox); + add_toggle(fog, "Remove fog", + "Disable fog entirely instead of recolouring it.", &g_fog_disable); int spread = add_card(3, &g_spread, "Spread control", "Choose a server shot seed that tightens the cone.", -- cgit v1.2.3