Improve gamma shader parity - fixes #611 (#790)

* Call gamma post process after `ui.render` #611

* Fixed "washed out" look.

* Improve gamma pass and cache viewport size
This commit is contained in:
ModMaker101
2026-03-07 04:00:38 -05:00
committed by GitHub
parent cc85ecf05a
commit e754bad17e
9 changed files with 90 additions and 49 deletions

View File

@@ -81,7 +81,9 @@ private:
float m_cachedGammaPerPlayer[NUM_LIGHT_TEXTURES];
static float ComputeGammaFromSlider(float slider0to100);
void CachePlayerGammas();
public:
void ApplyGammaPostProcess() const;
private:
bool ComputeViewportForPlayer(int j, D3D11_VIEWPORT& outViewport) const;
uint32_t BuildPlayerViewports(D3D11_VIEWPORT* outViewports, float* outGammas, UINT maxCount) const;