From 592b865ca5c98d1df2153ea5b77f67aa8a76db60 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 14:11:40 +0100 Subject: Add HDR tonemap brightness slider The engine applies mat_monitorgamma (SDL receives changing ramp midpoints), but Wayland/XWayland compositors discard the window gamma ramp, so the gamma slider has no visible effect there. Add an in-engine brightness control that does not depend on the window system: mat_force_tonemap_scale, exposed as "HDR brightness" (x10, 0 = automatic). Drop the temporary SDL gamma ramp diagnostic. --- src/hl2h.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/hl2h.h') diff --git a/src/hl2h.h b/src/hl2h.h index 6b142c7..a050feb 100644 --- a/src/hl2h.h +++ b/src/hl2h.h @@ -249,6 +249,7 @@ extern bool g_edge_jump; extern int g_fov_camera; extern int g_fov_viewmodel; extern int g_gamma; +extern int g_tonemap; extern int g_esp_col_hostile[3]; extern int g_esp_col_neutral[3]; extern int g_esp_col_friendly[3]; -- cgit v1.2.3