Repository navigation
Conversation
Standalone Win32 mod (not registered in Luma.sln). Replaces the tonemap and final pass for HDR with LUT grade extension, gamut expansion and display mapping, plus sky, ocean, bloom, emissive, deferred light and reflection fixes. Luma bloom is added after the grade with an SDR-white threshold. Sun glare/shaft boost shaders are kept as .hlsl.disabled for now.
- Replace the game's FXAA (0x1B00C911) with Luma SMAA (AntiAliasingMode, default SMAA). - Gamut Expansion: uniform chroma boost on vivid colors only, hue restored from the pre-expansion color (new GamutExpansionHueLock, default 1, replaces the unused VanillaHueShift field). - Tonemapped MSAA resolve hook + shader, default off: Texture2DMS loads of HMA's MSAA targets read 2x zoomed (likely non-zero SampleDesc.Quality).
… NaN fixes - Tonemap 0xEED9AC77 (Chinatown/Terminus interior variant) replaced and hooked in main.cpp - Vanilla hue/chroma restore (VanillaHueRestore setting) in both tonemaps - Sky boost keyed to pre-exposure brightness; LUT white normalization only near white; slope-continuous above-white extension (no superlinear blowup, no kink) - FinalPost: OkLab BT.2020 gamut mapping with margin, hue-only recovery; top gradient faded toward black - Fog 0x49154D1F faded toward black (scene copy bound at t2 from main.cpp) - NaN guards: bloom source 0xA439D28A, pause composite 0xAB9D887F - Emissive 0x6F46E816 and video 0x809ECC07 replacements
- Tonemapped (Karis) MSAA resolve, exposure-weighted, with a 2x2-grid read mode for drivers that expose the 4x MS surface that way (default) - Generic G-buffer clamp: blend-only MAX 0 / MIN 1 pass once per frame after the G-buffer fill, restoring vanilla UNORM range on fp16 upgrades - Replacements for MSAA deferred lights that blew up to fp16 max with upgraded G-buffers (clamped reads, guarded divides/rsq) - Pretty Post Process flare port, XeGTAO, and pending shader work
…ing tuning - Tonemaps (0x46C50FC2, 0xEED9AC77): shadow luminance-match no longer takes hue from noise near black (green speckles) or from the vanilla LUT's coloured black floor (blue shadows); the floor is stripped from the vanilla reference. - ReflectiveProp_0xD8080EE4: new translation of the gun/chrome sphere-map reflection material; soft-caps its HDR env-map output (knee 0.5, max 1.5) so held weapons don't out-shine the sky. - Pending working-tree work: deferred light, DOF, final pass/output, auto-exposure, cbuffer and main.cpp tuning, ambient volume shader.
Hitman absolution Full Mod
…ay HDR is off, fill about/credits
… input re-install guard, sign-preserving w divide, NaN-free bloom bright select, G-buffer clamp and AE metering policy comments
…uffer layout, mod_version 2), remove unused ModernLensFlare include/shader and Reinhard include, dedupe tonemap hashes, remove flare scene size fields, clean exposure CS dead defines/ternary, fix stale import trampolines after uninstall
OSTADJ2F
marked this pull request as ready for review
November 14, 2026 02:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Luma mod for Hitman Absolution