From 809c4766ba13e85546a747fe5e0dbd82e1e6d549 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 11 Aug 2018 06:10:33 +0500 Subject: Correct face culling for rotated blocks --- src/Render.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Render.cpp') diff --git a/src/Render.cpp b/src/Render.cpp index c1f7f2c..7f11dd9 100644 --- a/src/Render.cpp +++ b/src/Render.cpp @@ -419,6 +419,9 @@ void Render::RenderGui() { world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock).id, world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock).state, AssetManager::GetAssetNameByBlockId(BlockId{ world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock).id,0 }).c_str()); + + ImGui::Text("Selected block direction: %d", + AssetManager::GetBlockModelByBlockId(world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock)).direction); } ImGui::End(); -- cgit v1.2.3