mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 09:35:23 -04:00
Fix if your third person camera is positioned to be under the water outside the map but above the bedrock, but your player's position is still inside the map, translucent blocks above the water appear invisible
This commit is contained in:
parent
011af5faf3
commit
b03099f8fc
@ -531,9 +531,9 @@ static void Game_Render3D(double delta, float t) {
|
||||
PickedPosRenderer_Render();
|
||||
}
|
||||
|
||||
/* Render water over translucent blocks when underwater for proper alpha blending */
|
||||
pos = LocalPlayer_Instance.Base.Position;
|
||||
if (Camera.CurrentPos.Y < Env.EdgeHeight && (pos.X < 0 || pos.Z < 0 || pos.X > World.Width || pos.Z > World.Length)) {
|
||||
/* Render water over translucent blocks when under the water outside the map for proper alpha blending */
|
||||
pos = Camera.CurrentPos;
|
||||
if (pos.Y < Env.EdgeHeight && (pos.X < 0 || pos.Z < 0 || pos.X > World.Width || pos.Z > World.Length)) {
|
||||
MapRenderer_RenderTranslucent(delta);
|
||||
EnvRenderer_RenderMapEdges();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user