Skip to content

Brutal Legend: Add Luma mod - #285

Open
OSTADJ2F wants to merge 1 commit into
Filoppi:mainfrom
OSTADJ2F:brutal-legend-pr
Open

OSTADJ2F wants to merge 1 commit into
Filoppi:mainfrom
OSTADJ2F:brutal-legend-pr

Conversation

@OSTADJ2F

Copy link
Copy Markdown

Luma mod for Brütal Legend (32-bit DX9 through dgVoodoo2 to D3D11, Win32 build).

Shader hashes are translated by dgVoodoo, so they are tied to the wrapper build (2.87.5/2.87.6). The mod also patches dgVoodoo's GetTexture at runtime, which does not bounds-check the stage index: the game probes stages above 255 and crashes on level loads without it.

  • Native HDR: the tonemap (0xA2C20279) is replaced. The scene is FP16 in gamma space with additive overflow; it is graded like vanilla, then mapped to the display with PsychoV35 (RenoDX, MIT, attribution in Includes/PsychoV35.hlsl) or DICE. Vanilla hue is restored from the game's own SDR result, with optional gamut expansion into BT.2020 and an optional clip-style hue shift for very bright colours. Sky highlights get their own shoulder from the captured scene depth, and the fog colour, density and black floor can be adjusted. Screen flashes keep their vanilla colour.
  • Bloom: optional Luma bloom on the HDR scene.
  • AO: XeGTAO replaces the game's SSAO generation, blur and upsample.
  • Shadows: the screen-space shadow resolve is replaced with PCSS and cascade blending.
  • AA: SMAA replaces the game's FXAA. With MSAA on, alpha-tested foliage uses alpha to coverage through a runtime DXBC patch of the game's alpha-test shaders.
  • Textures: anisotropic filtering upgrade, including the game's trilinear material samplers; clamped reflection samplers keep their original filtering.
  • Optional PBR-style specular: a runtime DXBC patch scales the game's Phong highlight by its exponent (off by default).
  • Videos: AutoHDR for the Bink FMVs.
  • Engine (all optional): frame pacing between the game's render and simulation threads, interpolated skinned animation between simulation ticks, a 60 Hz simulation option, and draw distance and LOD overrides. Every patched site is verified by its bytes first; on a mismatch that feature stays off.
  • Controller: the exe's statically linked SDL 2.0.3 is redirected to a modern SDL2.dll placed next to the exe, with rumble and hotplug. Without the DLL the game runs as vanilla. The DLL is not in the repository; Package/README-SDL.txt is the SDL notice that ships with it.
  • Audio: optional FMOD output upgrade (WASAPI, resampler, speaker mode).
  • Experimental: a multithreaded D3D9 command stream (off by default).
  • Helpers: write the dgVoodoo MSAA setting, and set the 4 GB (LARGE_ADDRESS_AWARE) flag on the exe with a backup.

Only the project and its Luma.sln entry are added (Win32 configurations only).

Win32 mod for Brutal Legend running through dgVoodoo2 (D3D9 -> D3D11).

- HDR tonemap (PsychoV35 or DICE), gamut expansion, film grain, HDR bloom
- XeGTAO replacing the game's SSAO, PCSS shadow filtering
- SMAA, alpha-to-coverage and specular-highlight shader patches, AF upgrade
- Engine frame pacing and animation interpolation fixes, draw distance options
- Modern SDL2 controller support with rumble, FMOD output upgrade
- Optional multithreaded D3D9 command stream (experimental)
- dgVoodoo MSAA config and 4GB (LAA) exe patch helpers
@OSTADJ2F
OSTADJ2F marked this pull request as ready for review November 26, 2026 06:04
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