Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates multiple game-specific shader packs to newer tonemapping/grading logic (notably PsychoV17) and adds missing RE7 tonemap shader variants, plus expands Avatar/Star Wars Outlaws LUT-builder controls (including a BT.2020 hue emulation option).
Changes:
- Add missing RE7 tonemap/postprocess shader variants and map their constant-buffer registers by shader hash.
- Update Death Stranding 2 tonemap pipeline from Psycho test11 to Psycho test17 + replace “scaling” with a hue-emulation control.
- Refactor Avatar/Outlaws LUT builder to use Psycho test17 custom implementation and add several new grading controls in shared injection + addon settings.
Reviewed changes
Copilot reviewed 19 out of 20 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/games/re7-2r-3r-village/tonemap/PostToneMap/RE7_PostTonemap_PS_0xB3FE7A3D.ps_6_5.hlsl | New RE7 post-tonemap shader variant wired into shared tonemap include. |
| src/games/re7-2r-3r-village/tonemap/PostProcess_WithTonemap/RE7_LDRPostProcess_WithTonemap_0x9E94200C.ps_6_5.hlsl | New RE7 LDR postprocess-with-tonemap shader variant with grading hook. |
| src/games/re7-2r-3r-village/tonemap/CBuffer_ToneMap.hlsli | Extends shader-hash → cbuffer register mapping for new RE7 variants. |
| src/games/deathstranding2/tonemap/tonemap.hlsli | Switches tonemap implementation details to Psycho test17 + hue emulation behavior. |
| src/games/deathstranding2/tonemap/psycho_test11.hlsli | Removes legacy Psycho test11 implementation. |
| src/games/deathstranding2/shared.h | Renames injected parameter from scaling to hue emulation and updates macro. |
| src/games/deathstranding2/addon.cpp | Updates UI/settings wiring to the new hue emulation control. |
| src/games/avatarfop-swoutlaws/starwarsoutlaws/lutbuilder_hdr_0x9BBB3E97.cs_6_0.hlsl | Renames LUT-builder output function call to the new Outlaws entrypoint. |
| src/games/avatarfop-swoutlaws/shared.h | Adds new injection parameters (hue emulation, gamma, split contrast, adaptation contrast) and corresponding macros. |
| src/games/avatarfop-swoutlaws/psycho_test17_custom.hlsli | Adds Psycho test17 custom implementation for Avatar/Outlaws. |
| src/games/avatarfop-swoutlaws/macleod_boynton.hlsli | Expands MB helpers (new BT2020/AP1 luminosity helpers; refactors purity/hue correction APIs). |
| src/games/avatarfop-swoutlaws/lutbuilder.hlsli | Refactors LUT-builder grading/tonemap flow to Psycho test17 + new settings. |
| src/games/avatarfop-swoutlaws/avatarfop/lutbuilder_hdr_no_gamma_correction_0x7F10A5CF.cs_6_0.hlsl | Adds Avatar LUT-builder shader variant (no gamma correction). |
| src/games/avatarfop-swoutlaws/avatarfop/lutbuilder_hdr_0xCD4504F9.cs_6_0.hlsl | Adds Avatar LUT-builder shader variant. |
| src/games/avatarfop-swoutlaws/avatarfop/deprecated/old_lutbuilder_hdr_no_gamma_correction_0xB59B69BC.cs_6_0.hlsl | Fixes include path for deprecated shader variant. |
| src/games/avatarfop-swoutlaws/avatarfop/deprecated/old_lutbuilder_hdr_0x9642EE3A.cs_6_0.hlsl | Fixes include path for deprecated shader variant. |
| src/games/avatarfop-swoutlaws/addon.cpp | Updates UI labels and adds multiple new grading controls (hue emulation, gamma, split contrast, adaptation contrast, etc.). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| float3 corrected_ch = renodx::color::correct::GammaSafe(ungraded_bt709); | ||
| graded_bt709 = CorrectPurityMB(corrected_lum, corrected_ch); | ||
| graded_bt709 = renodx_custom::tonemap::psycho::psycho17_ApplyPurityFromBT2020(corrected_lum, corrected_ch, 1.f, 1.f); |
|
|
||
| float3 corrected_ch = renodx::color::correct::GammaSafe(ungraded_bt709); | ||
| graded_bt709 = CorrectPurityMB(corrected_lum, corrected_ch); | ||
| graded_bt709 = renodx_custom::tonemap::psycho::psycho17_ApplyPurityFromBT2020(corrected_lum, corrected_ch, 1.f, 1.f); |
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.
Avatar Frontiers of Pandora and Star Wars Outlaws:
Resident Evil 7:
Unreal Engine: