fix(lighting): use gamma value from java UI options for brightness

This commit is contained in:
Sally Knight 2026-03-16 19:37:12 +03:00
parent f46e8b3941
commit 938999b707

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;