mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
Fixed stained glass and glass pane not rendering the water and held item transparency for stained glass and pane (#748)
* fixed stained glass and glass pane not rendering the water * Fixed held item transparency for stained glass and pane
This commit is contained in:
parent
d265ce29a2
commit
a4214805d1
4 changed files with 14 additions and 2 deletions
|
|
@ -767,6 +767,9 @@ int LevelRenderer::renderChunks(int from, int to, int layer, double alpha)
|
|||
glPushMatrix();
|
||||
glTranslatef((float)-xOff, (float)-yOff, (float)-zOff);
|
||||
|
||||
if (layer == 1)
|
||||
glDepthMask(false);
|
||||
|
||||
#ifdef __PSVITA__
|
||||
// AP - also set the camera position so we can work out if a chunk is fogged or not
|
||||
RenderManager.SetCameraPosition((float)-xOff, (float)-yOff, (float)-zOff);
|
||||
|
|
@ -844,6 +847,10 @@ int LevelRenderer::renderChunks(int from, int to, int layer, double alpha)
|
|||
#endif // __PS3__
|
||||
|
||||
glPopMatrix();
|
||||
|
||||
if (layer == 1)
|
||||
glDepthMask(true);
|
||||
|
||||
mc->gameRenderer->turnOffLightLayer(alpha); // 4J - brought forward from 1.8.2
|
||||
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue