mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
Misc patches
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
bool TileRenderer::m_bFancyGrass = false;
|
||||
bool TileRenderer::m_bBiomeColors = false;
|
||||
bool TileRenderer::m_bUseAmbientOcclusion = false;
|
||||
|
||||
void TileRenderer::_init()
|
||||
{
|
||||
@@ -658,7 +659,7 @@ bool TileRenderer::tesselateBlockInWorld(Tile* tile, int x, int y, int z)
|
||||
float g = float(GET_GREEN(color)) / 255.0f;
|
||||
float b = float(GET_BLUE (color)) / 255.0f;
|
||||
|
||||
if (Minecraft::useAmbientOcclusion)
|
||||
if (TileRenderer::m_bUseAmbientOcclusion)
|
||||
{
|
||||
#ifdef ENH_USE_OWN_AO
|
||||
return tesselateBlockInWorldWithAmbienceOcclusionV2(tile, x, y, z, r, g, b);
|
||||
@@ -796,7 +797,7 @@ bool TileRenderer::tesselateWaterInWorld(Tile* tile1, int x, int y, int z)
|
||||
|
||||
label_8:
|
||||
bFlag2 = bFlag1;
|
||||
bool bRenderedSides = false;
|
||||
// bool bRenderedSides = false;
|
||||
|
||||
for (int dir = 0; dir < 4; dir++)
|
||||
{
|
||||
@@ -868,7 +869,7 @@ label_8:
|
||||
texV_2 = C_RATIO * (float(texY) + (1.0f - height2) * 16.0f);
|
||||
texV_3 = C_RATIO * (float(texY + 16.0f) - 0.01f);
|
||||
bFlag2 = true;
|
||||
bRenderedSides = true;
|
||||
// bRenderedSides = true;
|
||||
|
||||
float brightMul = dir >= DIR_XNEG ? 0.6f : 0.8f;
|
||||
float bright = tile->getBrightness(m_pLevelSource, checkX, y, checkZ);
|
||||
|
||||
Reference in New Issue
Block a user