Skip to content

Add HDR Mod Compatibility#68

Draft
rrtt217 wants to merge 6 commits intoHaringPro:devfrom
rrtt217:hdr_mod_compat
Draft

Add HDR Mod Compatibility#68
rrtt217 wants to merge 6 commits intoHaringPro:devfrom
rrtt217:hdr_mod_compat

Conversation

@rrtt217
Copy link
Contributor

@rrtt217 rrtt217 commented Feb 28, 2026

HDR Mod is a mod made by myself that enables native HDR output in Minecraft.

To correctly output in HDR, the following tasks must be done:

  • Scaling and final output transform as in HDR Mod Wiki
  • HDR compatible tonemaps:
    • GT and GT7
    • ACES Fit (another variant)
    • ACES Full
    • AgX (another varient by Allenwp, need to be tweaked for better SDR appearance)
    • Lottes (will need further parameter adjustment)

The following tasks are optimal for HDR, but not mandatory:

  • Use RGBA16F buffer for colortex0/8 when HDR Mod is enabled (Macros in colortex*Format may affect compatibility)
  • Generalize colorspace concept in code(e.g. not limiting working space to Rec.709)
  • Refactor tonemapping-related code

- Add HDR Mod Uniforms to Uniform.glsl
- Add UI color scale as required
- ACES Fit, 1000 nits variant for HDR
- GT and GT7, which have built-in HDR support
- (new) AgX-AllenWp, from Godot engine, need further tweak for better SDR appearance
@moyongxin
Copy link
Collaborator

We think we may consider some additional stuff:

  • Generalize colorspaces(maybe an overhaul)
  • Split tonemappers into different parts(display mappings and OOTFs. e.g. for all SDR tonemappers, use the same display mapping but different curves)

@moyongxin moyongxin self-assigned this Feb 28, 2026
@moyongxin moyongxin added the enhancement New feature or request label Feb 28, 2026
@rrtt217
Copy link
Contributor Author

rrtt217 commented Mar 1, 2026

  • As for genealizing colorspace, it requires some works to be done before the grading pass.
  • Tonemappers except Lottes and ACES Full are already pure OOTF/display mapping/linearTolinear.
    • Lottes tonemapping used in Revelation is a variant of unknown origin with linearTosRGB baked in; using the original Lottes as OOTF is possible but requires more parameter tweaking.
    • As for ACES Full the tonemapper uses (and may targets at) bt.1886 w/ gamma 2.4 encoding, swiching to sRGB might slightly broken ACES Full.
    • The main problem is SDR tonemapper usually use a intrinsic maximum value of 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants