From aa0d15e19636182694e8f5188abe1b0df586dbad Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Wed, 2 Jan 2019 20:17:03 -0500 Subject: [PATCH] Fixed the top face of slabs sometimes not rendering --- src/inc/mesh.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/inc/mesh.hpp b/src/inc/mesh.hpp index f9fcf48..9010365 100644 --- a/src/inc/mesh.hpp +++ b/src/inc/mesh.hpp @@ -197,9 +197,16 @@ void world_subset_to_mesh if (is_slab(voxel_id)) { + // Slabs are half as tall as a normal block, and + // reside on the bottom half of their unit cube. + vtx_high = 0.5f; tex_high = 0.5f; + + // Slab tops cannot be hidden. + + visible_top = true; } // Generate visible faces and write them to the target