mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-06 09:02:57 +00:00
fix(lighting): use gamma value from java UI options for brightness
This commit is contained in:
parent
f46e8b3941
commit
938999b707
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue