diff options
| author | ModMaker101 <119018978+ModMaker101@users.noreply.github.com> | 2026-03-07 04:00:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-07 03:00:38 -0600 |
| commit | e754bad17e5770ccbcceb45c39f31d7e8bf6ff58 (patch) | |
| tree | 924e0f3b153c62f9416d05c6a1e8c3155c33ffad /Minecraft.Client/GameRenderer.h | |
| parent | cc85ecf05af6dcc35afc1ab905ce306b04055fc9 (diff) | |
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
Diffstat (limited to 'Minecraft.Client/GameRenderer.h')
| -rw-r--r-- | Minecraft.Client/GameRenderer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Minecraft.Client/GameRenderer.h b/Minecraft.Client/GameRenderer.h index 21cf8acb..c379106e 100644 --- a/Minecraft.Client/GameRenderer.h +++ b/Minecraft.Client/GameRenderer.h @@ -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; |
