diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 14:11:40 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 14:11:40 +0100 |
| commit | 592b865ca5c98d1df2153ea5b77f67aa8a76db60 (patch) | |
| tree | 4fb957603dba3bc57d316168f074410bdef3e70f /src/hl2h.h | |
| parent | Gamma: clamp slider to the engine's 2.6 cap, defer readback (diff) | |
| download | hl2h-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -249,6 +249,7 @@ extern bool g_edge_jump; | |||
| 249 | extern int g_fov_camera; | 249 | extern int g_fov_camera; |
| 250 | extern int g_fov_viewmodel; | 250 | extern int g_fov_viewmodel; |
| 251 | extern int g_gamma; | 251 | extern int g_gamma; |
| 252 | extern int g_tonemap; | ||
| 252 | extern int g_esp_col_hostile[3]; | 253 | extern int g_esp_col_hostile[3]; |
| 253 | extern int g_esp_col_neutral[3]; | 254 | extern int g_esp_col_neutral[3]; |
| 254 | extern int g_esp_col_friendly[3]; | 255 | extern int g_esp_col_friendly[3]; |
