mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
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
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:
commit
36f99f56ef
|
|
@ -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 (_r > 1) _r = 1;
|
||||||
if (_g > 1) _g = 1;
|
if (_g > 1) _g = 1;
|
||||||
if (_b > 1) _b = 1;
|
if (_b > 1) _b = 1;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue