Skip to content

Hitman Absolution - #274

Closed
OSTADJ2F wants to merge 18 commits into
Filoppi:mainfrom
OSTADJ2F:hitman-absolution-auto-exposure
Closed

OSTADJ2F wants to merge 18 commits into
Filoppi:mainfrom
OSTADJ2F:hitman-absolution-auto-exposure

Conversation

@OSTADJ2F

Copy link
Copy Markdown

Luma mod for Hitman Absolution

OSTADJ2F and others added 18 commits November 6, 2026 15:26
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.
… 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
OSTADJ2F marked this pull request as ready for review November 14, 2026 02:46
@OSTADJ2F OSTADJ2F closed this Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant