diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 00:59:41 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 00:59:41 +0100 |
| commit | 1e5054ceac42c97a63428a4adb89395b98890fe1 (patch) | |
| tree | 65ab35f820d4e9c3abccffd47c78b8c279cdb496 /src/hooks.cpp | |
| parent | Skybox image: recognise Sky_HDR_DX9 as the HDR sky shader (diff) | |
| download | hl2h-1e5054ceac42c97a63428a4adb89395b98890fe1.tar.gz hl2h-1e5054ceac42c97a63428a4adb89395b98890fe1.zip | |
Skybox image: apply HDR colour compensation where materials exist
Move the HDR decision from texture load to apply_sky_texture, after the sky
materials have definitely been enumerated: compensate the pixel buffer
(sRGB -> linear, alpha = 1/8) and re-download the procedural texture before
assigning it. The earlier load-time check ran before the materials were
visible and silently chose the LDR path, so the 8x HDR decode stayed.
Also log the compensation explicitly so the chosen path is visible.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
