From 3ade810606b9bca81fd8c16fb5ec4ecb8f1b722d Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 21 Aug 2020 12:21:47 +0200 Subject: [PATCH] Removed leftover debug operation. --- meshers/cubic/voxel_mesher_cubic.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meshers/cubic/voxel_mesher_cubic.cpp b/meshers/cubic/voxel_mesher_cubic.cpp index 6f16a2a..b60f1e6 100644 --- a/meshers/cubic/voxel_mesher_cubic.cpp +++ b/meshers/cubic/voxel_mesher_cubic.cpp @@ -50,7 +50,6 @@ void VoxelMesherCubic::_add_chunk(Ref p_chunk) { Ref cube_points; cube_points.instance(); - float tile_uv_size = 1 / 4.0; Color base_light(_base_light_value, _base_light_value, _base_light_value); for (int y = 0; y < y_size; ++y) { @@ -114,7 +113,7 @@ void VoxelMesherCubic::_add_chunk(Ref p_chunk) { add_color(light); - Vector2 uv = (cube_points->get_point_uv_direction(face, i) + Vector2(0.5, 0.5)) * Vector2(tile_uv_size, tile_uv_size); + Vector2 uv = cube_points->get_point_uv_direction(face, i) + Vector2(0.5, 0.5); VoxelSurface::VoxelSurfaceSides side = VoxelSurface::VOXEL_SIDE_SIDE;