forked from mirrors/kolyah35-minecraft-pe-0.6.1
Fixed Grass Foliage color using foliagecolor.png instead of grasscolor.png
Debug Screen now also renders mob id nametags like in beta java SkyDarken is now also no longer clamped in Java Fog Style
This commit is contained in:
parent
2da05d94c8
commit
792d4b32e7
3 changed files with 18 additions and 6 deletions
|
|
@ -1165,7 +1165,13 @@ int Level::getSkyDarken(float a) {
|
|||
|
||||
float br = 1 - (Mth::cos(td * Mth::PI * 2) * 2 + 0.5f);
|
||||
if (br < 0.0f) br = 0.0f;
|
||||
if (br > 0.80f) br = 0.80f; //@note; was 1.0f
|
||||
if (dimension->FogType == 1) // @TODO - probably make this not dependent on dimension type honestly - shredder
|
||||
{
|
||||
if (br > 1.0f) br = 1.0f; //@ uses the normal javasky color ramp when java sky type is choosen,
|
||||
} else
|
||||
{
|
||||
if (br > 0.8f) br = 0.8f; //@note; was 1.0f
|
||||
}
|
||||
return ((int) (br * 11));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue