From 9e8eaa6f4d08d02e82fc0de29b184564f72aab84 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sun, 17 Apr 2022 22:09:32 +0200 Subject: [PATCH] Cull liquid faces next to unloaded nodes --- src/client/terrain_gfx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/terrain_gfx.c b/src/client/terrain_gfx.c index bf9fd98..258a295 100644 --- a/src/client/terrain_gfx.c +++ b/src/client/terrain_gfx.c @@ -64,7 +64,8 @@ static inline bool cull_face(NodeType self, NodeType nbr) return false; case VISIBILITY_BLEND: - return self == nbr; + return nbr == NODE_UNLOADED + || nbr == self; case VISIBILITY_SOLID: return nbr == NODE_UNLOADED -- 2.44.0