Skip to content

More Updates#540

Open
mqhaji wants to merge 6 commits intoclshortfuse:mainfrom
mqhaji:main
Open

More Updates#540
mqhaji wants to merge 6 commits intoclshortfuse:mainfrom
mqhaji:main

Conversation

@mqhaji
Copy link
Copy Markdown
Contributor

@mqhaji mqhaji commented Apr 10, 2026

Avatar Frontiers of Pandora and Star Wars Outlaws:

  • Use PsychoV17
  • Add add bt.2020 hue shift option

Resident Evil 7:

  • add missing tonemap shaders for when vignette is disabled through REFramework

Unreal Engine:

  • Add Samson lutbuilder

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);
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.

2 participants