Skip to content

feat(masseffectandromeda): add game#576

Open
jhi721 wants to merge 3 commits into
clshortfuse:mainfrom
jhi721:masseffectandromeda
Open

feat(masseffectandromeda): add game#576
jhi721 wants to merge 3 commits into
clshortfuse:mainfrom
jhi721:masseffectandromeda

Conversation

@jhi721

@jhi721 jhi721 commented Jun 4, 2026

Copy link
Copy Markdown

Native HDR fix for Mass Effect: Andromeda (Frostbite 3, D3D11).

Required in-game settings

  • HDR: On (HDR10), Framebuffer Format: HALF16 (64 bits)
  • Post Process Quality: Medium or higher (grading effects no-op on Low)
  • HDR10 Peak Value: max - then set the add-on's Peak Brightness to your display peak

Features

  • Vanilla (untouched native HDR) / Vanilla+ (paper white, roll-off, grading, effects)
  • Gamma Correction (Off / 2.2 / BT.1886), paper white / peak / UI brightness
  • Color grade (exposure, highlights, shadows, contrast, saturation, hue shift, flare),
    bloom / vignette / chromatic aberration, perceptual film grain, RCAS sharpening, AutoHDR videos

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a new RenoDX game module for Mass Effect: Andromeda (Frostbite 3 / D3D11) focused on preserving the game’s native HDR pipeline while providing an optional “Vanilla+” path with paper-white/peak tuning, grading, and post effects.

Changes:

  • Introduces the MEA add-on (addon.cpp) that registers custom shader replacements/callbacks and exposes user-configurable HDR + grading/effects settings.
  • Adds shared shader injection definitions/utilities plus new shader implementations for tonemap+grade, present tails (1:1 + upscaled), loading/video presents, bicubic upscale sampling, and HDR RCAS sharpening.
  • Adds MEA game metadata for deployment/identification.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/games/masseffectandromeda/addon.cpp Registers MEA custom shaders/callbacks, sets swapchain/resource upgrade behavior, and defines user settings.
src/games/masseffectandromeda/shared.h Defines injected uniform layout and shared shader helpers (present params, UI composite, Vanilla+ pipeline).
src/games/masseffectandromeda/metadata.json Declares game ID/title/maintainer/status and Steam AppID for deployment metadata.
src/games/masseffectandromeda/tonemap_grade_common.hlsli Implements shared Frostbite tonemap+grade logic with optional CA and grain permutations and Vanilla+ controls.
src/games/masseffectandromeda/tonemap_grade_0xB6A91712.ps_5_0.hlsl Wires tonemap+grade permutation (CA off / grain off) to the shared implementation.
src/games/masseffectandromeda/tonemap_grade_0x376C116B.ps_5_0.hlsl Wires tonemap+grade permutation (CA off / grain on) to the shared implementation.
src/games/masseffectandromeda/tonemap_grade_0xEB91AB31.ps_5_0.hlsl Wires tonemap+grade permutation (CA on / grain off) to the shared implementation.
src/games/masseffectandromeda/tonemap_grade_0xE3D57A10.ps_5_0.hlsl Wires tonemap+grade permutation (CA on / grain on) to the shared implementation.
src/games/masseffectandromeda/present_core.hlsli Shared HDR present tail (linearize via output LUT, optional RCAS/effects, UI composite, PQ output).
src/games/masseffectandromeda/output_0xF5B0DBFA.ps_5_0.hlsl Main 1:1 HDR present shader using the shared present tail.
src/games/masseffectandromeda/output_upscale_0xAFFFA4AB.ps_5_0.hlsl Upscaled HDR present shader using bicubic scene fetch + shared present tail.
src/games/masseffectandromeda/loading_core.hlsli Shared loading/video present tail (sRGB decode, optional Vanilla+ processing, UI/video handling, PQ output).
src/games/masseffectandromeda/output_loading_0xF5B7A93D.ps_5_0.hlsl 1:1 loading/video present shader using the shared loading tail.
src/games/masseffectandromeda/output_upscale_loading_0x667C56AF.ps_5_0.hlsl Upscaled loading/video present shader using bicubic art fetch + shared loading tail.
src/games/masseffectandromeda/bicubic_upscale.hlsli Implements a separable 16-tap Catmull-Rom bicubic sampler used by upscaled presents.
src/games/masseffectandromeda/lilium_rcas.hlsli Implements HDR RCAS sharpening and related sampling helpers for MEA.
src/games/masseffectandromeda/videos_0x7ED07F45.ps_5_0.hlsl FMV YUV→RGB decode pass used to flag video activity while preserving vanilla decode behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/games/masseffectandromeda/lilium_rcas.hlsli Outdated
@jhi721

jhi721 commented Jun 5, 2026

Copy link
Copy Markdown
Author

Fixed CI errors and Copilot's comment

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 19 out of 19 changed files in this pull request and generated 1 comment.

Comment thread src/games/masseffectandromeda/tonemap_grade_common.hlsli
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