summaryrefslogtreecommitdiffstats
path: root/src/hl2h.h
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 14:11:40 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 14:11:40 +0100
commit592b865ca5c98d1df2153ea5b77f67aa8a76db60 (patch)
tree4fb957603dba3bc57d316168f074410bdef3e70f /src/hl2h.h
parentGamma: clamp slider to the engine's 2.6 cap, defer readback (diff)
downloadhl2h-592b865ca5c98d1df2153ea5b77f67aa8a76db60.tar.gz
hl2h-592b865ca5c98d1df2153ea5b77f67aa8a76db60.zip
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.
Diffstat (limited to '')
-rw-r--r--src/hl2h.h1
1 files changed, 1 insertions, 0 deletions
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;
249extern int g_fov_camera; 249extern int g_fov_camera;
250extern int g_fov_viewmodel; 250extern int g_fov_viewmodel;
251extern int g_gamma; 251extern int g_gamma;
252extern int g_tonemap;
252extern int g_esp_col_hostile[3]; 253extern int g_esp_col_hostile[3];
253extern int g_esp_col_neutral[3]; 254extern int g_esp_col_neutral[3];
254extern int g_esp_col_friendly[3]; 255extern int g_esp_col_friendly[3];