Merge pull request #265 from realffqq/dev
Some checks are pending
Publish Documentation / deploy (push) Blocked by required conditions
Publish Documentation / build (push) Waiting to run
Build (Linux, x86_64) / build-linux (push) Waiting to run
Build (Linux, x86_64) / build-linux-debug (push) Waiting to run
Clang Format / clang-format (push) Waiting to run

fix(lighting): use gamma value from java UI options for brightness
This commit is contained in:
Tropical 2026-03-16 11:54:16 -05:00 committed by GitHub
commit 36f99f56ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -924,7 +924,10 @@ void GameRenderer::updateLightTexture(float a) {
}
}
float brightness = 0.0f; // 4J - TODO - was mc->options->gamma;
float brightness =
mc->options->gamma; // 4jcraft: since the java UI has a
// brightness slider again, lets use it.
// it'll still be 0.0f for iggy UI anyway
if (_r > 1) _r = 1;
if (_g > 1) _g = 1;
if (_b > 1) _b = 1;