Minecraft HDR Mod
一款支持在 Windows / macOS / Linux 上通过 Iris 光影实现原生 HDR 的 Minecraft 模组。
(使用 Patrix 修复后的 Photon 光影,由模组的截图功能拍摄。)
模组已实现的功能
- 原生 HDR 支持,涵盖 scRGB 和 HDR10/PQ。
- 通过新的渲染通道进行 UI 色彩校正。
- 使用 Cloth Config API 在游戏内配置。
- 游戏内 HDR 截图。
- Replay Mod HDR 视频导出(需要自定义 FFmpeg 命令行参数,可在配置菜单中找到)
- 完整的 Wayland IME 输入法修复(需要 IMBlocker)。
用户须知
[!IMPORTANT] 需要安装经过修改的光影包!
- 通过配置菜单调整 HDR 亮度值(纸白、UI、峰值)。(默认快捷键:F9)
- 在游戏内截取 HDR 截图。(默认快捷键:F10)
- 支持的平台:
- Windows:Nvidia/AMD GPU 通常运行完美。Intel GPU 自 v2.1.0 起提供支持,采用 DXGI 回退路径,但性能会有所下降(更多信息请参阅 v2.1.0 发布说明)。
- Linux Wayland:AMD/Intel GPU 通常运行完美。使用 Nvidia GPU 的用户可能会遇到一些问题或崩溃,请参阅故障排除部分以获取潜在的解决方法。
- macOS:支持,但需要更多测试,预计会有 bug。此外,macOS 上的光影包支持有限。
- Android/iOS:不支持。如果移动启动器开发者对该项目感兴趣,我的 glfw fork 可以作为未来 HDR 支持的起点。
- 故障排除:
- ReShade 在默认设置下目前不兼容,无法加载并破坏天空效果。
- 在配置/高级选项中启用“强制激活 OpenGL-DirectX 互操作”可以提高与 SpecialK 和 ReShade 的兼容性。请确保它们仅注入 DirectX 11 层。
- 同样干扰 GLFW 的模组可能不兼容。(例如 Ixeris)
- 如果你的游戏太亮/太暗,尝试自行调整自定义亮度值。
- 如果你使用的是 Windows,别忘了安装最新的 Visual C++ Redistributable。
- 如果你在 NeoForge/Forge 上游戏崩溃,请在
<game folder>/config/fml.toml中禁用earlyWindowControl - 如果启用光影后 HDR 失效,请将 Iris/Oculus 中的“Colorspace”设置重置为“sRGB”。
- 如果游戏无法启动或某些功能损坏,请清理临时文件(路径可在日志中找到,Windows 上为 %TEMP%/glfw,Linux 上为 /tmp/glfw)。
- 确保在 Linux 上游戏是在 Wayland 下运行的。对于 >= 26.3 版本,你可能需要
SDL_VIDEODRIVER=wayland才能在一些 DE/合成器上正常运行。 - 对于 Linux Nvidia 用户,如果游戏无法启动,或者游戏内出现严重的色带现象,你可以尝试启用 Zink(预计性能会下降):
- 在 PrismLauncher 中,你可以在设置中启用 Zink;
- 对于没有此功能的启动器,请使用以下环境变量:
export __GLX_VENDOR_LIBRARY_NAME=mesa export __EGL_VENDOR_LIBRARY_FILENAMES=/run/opengl-driver/share/glvnd/egl_vendor.d/50_mesa.json export MESA_LOADER_DRIVER_OVERRIDE=zink export GALLIUM_DRIVER=zink - 仅在 Mesa >= 26.0.0 上有效。较低版本由于缺少 This PR 会导致游戏崩溃。
- ReShade 在默认设置下目前不兼容,无法加载并破坏天空效果。
针对光影包开发者
Wiki 教程
宏定义
HDR_MOD_INSTALLEDHDR_ENABLED
Uniforms
float HdrGameMinimumBrightness;float HdrGamePeakBrightness;float HdrGamePaperWhiteBrightness;float HdrUIBrightness;
在 #if HDR_MOD_INSTALLED 块内部使用这些 uniforms。
输出要求
着色器的输出(即最终通道中写入主渲染目标的内容)应具有 scRGB-nl 编码(Rec.709 原色,sRGB 传输函数(对于负数使用 −f(−x))),并且你不应该对场景颜色使用 RGBA8F。
鸣谢
- Tom94,提供了 带有色彩管理的 glfw fork;
- IMS212,提供了 Iris shaders 和 原始 glfw 补丁想法;
- XgarhontX 及其他伙伴,致力于 RenoDX Minecraft HDR 及光影补丁工作,并帮助我使色彩变换正确无误。
版权声明
主要 HDR Mod 仓库采用 MIT 许可证授权。捆绑的来自 Tom94/mine 分支的 GLFW 采用 zlib/libpng 许可证授权。
Star History
Minecraft HDR Mod
A minecraft mod that enables native HDR on Windows / macOS / Linux with Iris shaders.
(Photon patched to HDR w/ Patrix, taken by mod's screenshot feature.)
What the mod have achieved
- Native HDR, both for scRGB and HDR10/PQ.
- UI color correction by a new render pass.
- Ingame config using Cloth Config API.
- Ingame HDR screenshot.
- Replay Mod HDR Video Export (need custom FFmpeg commandline, which can be found in config menu)
- Full Wayland IME fix (need IMBlocker).
For Users
[!IMPORTANT] Requires modded shaderpacks!
- Adjust HDR Brightness values (Paper White, UI, Peak) with config menu. (Default keybind: F9)
- Take a HDR screenshot ingame. (Default keybind: F10)
- Supported platforms:
- Windows: Nvidia/AMD GPU generally run flawlessly. Intel GPU is supported since v2.1.0 with a DXGI fallback path and there's performance degradation (more info in v2.1.0 release note).
- Linux Wayland: AMD/Intel GPU generally run flawlessly. People using Nvidia GPU may encounter some problems/crashes, see the troubleshooting for a potential workaround.
- macOS: Supported but need more testing, bugs are expected. Also, shaderpack support on macOS is limited.
- Android/iOS: Not supported. If Mobile launcher developers are interested in the project, my glfw fork can be a starting point for HDR support in the future.
- Troubleshooting:
- ReShade is currently not compatible under default settings, failing to load and breaking sky.
- Enabling "Force Activate OpenGL-DirectX Interop" in config/advanced can improve compatibility with SpecialK and ReShade. Please make sure they only inject into DirectX 11 layer.
- Mods also messing with GLFW may be incompatible. (e.g. Ixeris)
- If your game is too bright/dark, try to adjust the custom brightness values yourself.
- If you're on Windows, don't forget to install the latest Visual C++ Redistributable.
- If your game crashes on NeoForge/Forge, disable
earlyWindowControlin<game folder>/config/fml.toml - If HDR is broken when shaders are enabled, please reset "Colorspace" setting in Iris/Oculus to "sRGB".
- Clean temp file if your game doesn't start or some features are broken (path can be found in log, %TEMP%/glfw on Windows and /tmp/glfw on Linux).
- Make sure that the game is running on Wayland on Linux. For >= 26.3 you may need
SDL_VIDEODRIVER=waylandfor some DEs/compositors. - For Linux Nvidia users, if your game can't start, or there's too much banding ingame, you can try enabling Zink (performance degradation is expected):
- On PrismLauncher, you can enable Zink in settings;
- For launchers without this feature, use these environment variables:
export __GLX_VENDOR_LIBRARY_NAME=mesa export __EGL_VENDOR_LIBRARY_FILENAMES=/run/opengl-driver/share/glvnd/egl_vendor.d/50_mesa.json export MESA_LOADER_DRIVER_OVERRIDE=zink export GALLIUM_DRIVER=zink - ONLY WORKS ON Mesa >= 26.0.0. Lower versions crash your game due to the lack of This PR.
- ReShade is currently not compatible under default settings, failing to load and breaking sky.
For Shader Packs
Wiki Tutorial
Macros
HDR_MOD_INSTALLEDHDR_ENABLED
Uniforms
float HdrGameMinimumBrightness;float HdrGamePeakBrightness;float HdrGamePaperWhiteBrightness;float HdrUIBrightness;
Use these uniforms inside #if HDR_MOD_INSTALLED block.
Output
the output of the shader(aka. what is written to main render target in final pass) should have scRGB-nl encoding(Rec.709 primaries, sRGB (for negative numbers use −f(−x)) transfer function), and you should not use RGBA8F for scene color.
Credits
- Tom94, for glfw fork with color management;
- IMS212, for Iris shaders and original glfw patch idea;
- XgarhontX and some other fellows, for working on RenoDX Minecraft HDR and shader patches, and helping me to make color transform correct.
Copyright
The main HDR Mod repo is licensed under MIT. Bundled GLFW from Tom94's/mine fork is licensed under the zlib/libpng license.
Star History
下载 rrtt217's HDR Mod
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 rrtt217's HDR Mod
下载 rrtt217's HDR Mod
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 rrtt217's HDR Mod
下载 rrtt217's HDR Mod
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 rrtt217's HDR Mod
下载 rrtt217's HDR Mod
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 rrtt217's HDR Mod
下载 rrtt217's HDR Mod
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 rrtt217's HDR Mod
HDR 模组 v3.2.7-26.3 更新日志
修复
- MacOS OpenGL HDR(#96)
HDR 模组 v3.2.6-26.3 更新日志
修复
- 附魔物品不再正确渲染(#94, #95)
HDR Mod v3.2.4-26.2 更新日志
修复
- Vulkan 及其钩子下的原版 F2 截图问题
HDR Mod v3.2.4-26.3 更新日志
修复
- 与最新 NeoForge 早期加载屏幕兼容\
- 终于,在 26.3 中我们无需再为 HDR Mod 禁用 ELS 了,感谢 NeoForge 和 Minecraft 的大量重构工作。
注意
- 在 26.3 中,Ixeris 尚未获得稳定支持,在极少数情况下可能会在 Wayland 上引发问题。该问题可能永远无法完全修复。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧