diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-03 23:32:16 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-03 23:32:16 +0100 |
| commit | edba65625dd5823705619a2e682a99d6ad91ae8b (patch) | |
| tree | cae03d46267469d1076937ad22c7b2aec63b068e /src/gui.cpp | |
| parent | GUI: add inline colour picker control (diff) | |
| download | hl2h-edba65625dd5823705619a2e682a99d6ad91ae8b.tar.gz hl2h-edba65625dd5823705619a2e682a99d6ad91ae8b.zip | |
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].
Diffstat (limited to '')
| -rw-r--r-- | src/gui.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
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() { | |||
| 401 | add_toggle(tint, "Skybox", "Tint the skybox textures.", &g_tint_sky_on); | 401 | add_toggle(tint, "Skybox", "Tint the skybox textures.", &g_tint_sky_on); |
| 402 | add_color(tint, "Sky colour", "Click the swatch to open the picker.", | 402 | add_color(tint, "Sky colour", "Click the swatch to open the picker.", |
| 403 | g_tint_sky_rgb); | 403 | g_tint_sky_rgb); |
| 404 | add_toggle(tint, "Props", | ||
| 405 | "Tint model materials under models/props (map props, static " | ||
| 406 | "and physics).", | ||
| 407 | &g_tint_prop_on); | ||
| 408 | add_color(tint, "Prop colour", "Click the swatch to open the picker.", | ||
| 409 | g_tint_prop_rgb); | ||
| 410 | |||
| 411 | int fog = add_card(2, &g_fog, "Fog", | ||
| 412 | "Override the map's fog colour and distances.", true); | ||
| 413 | add_color(fog, "Colour", "Click the swatch to open the picker.", g_fog_rgb); | ||
| 414 | add_slider(fog, "Start", "Distance in units where fog starts.", 0, 8000, | ||
| 415 | &g_fog_start); | ||
| 416 | add_slider(fog, "End", "Distance in units where fog is fully opaque.", 0, | ||
| 417 | 20000, &g_fog_end); | ||
| 418 | add_toggle(fog, "Skybox fog", "Apply the same fog to the 3D skybox.", | ||
| 419 | &g_fog_skybox); | ||
| 420 | add_toggle(fog, "Remove fog", | ||
| 421 | "Disable fog entirely instead of recolouring it.", &g_fog_disable); | ||
| 404 | 422 | ||
| 405 | int spread = add_card(3, &g_spread, "Spread control", | 423 | int spread = add_card(3, &g_spread, "Spread control", |
| 406 | "Choose a server shot seed that tightens the cone.", | 424 | "Choose a server shot seed that tightens the cone.", |
