diff --git a/meshers/blocky/voxel_mesher_blocky.cpp b/meshers/blocky/voxel_mesher_blocky.cpp index 75ef51a0..ba873bcc 100644 --- a/meshers/blocky/voxel_mesher_blocky.cpp +++ b/meshers/blocky/voxel_mesher_blocky.cpp @@ -76,7 +76,7 @@ void VoxelMesherBlocky::build(VoxelMesher::Output &output, const VoxelBuffer &bu a.indices.clear(); } - float baked_occlusion_darkness; + float baked_occlusion_darkness=0; if (_bake_occlusion) baked_occlusion_darkness = _baked_occlusion_darkness / 3.0; @@ -102,7 +102,7 @@ void VoxelMesherBlocky::build(VoxelMesher::Output &output, const VoxelBuffer &bu // and then save a lot of time. uint8_t *type_buffer = buffer.get_channel_raw(channel); - // _ + /* _ // | \ // /\ \\ // / /|\\\ @@ -111,6 +111,7 @@ void VoxelMesherBlocky::build(VoxelMesher::Output &output, const VoxelBuffer &bu // | | ) // \ | | // \ / + */ if (type_buffer == nullptr) { // No data to read, the channel is probably uniform // TODO This is an invalid behavior IF sending a full block of uniformly opaque cubes, diff --git a/meshers/transvoxel/voxel_mesher_transvoxel.cpp b/meshers/transvoxel/voxel_mesher_transvoxel.cpp index fd60e548..11d04808 100644 --- a/meshers/transvoxel/voxel_mesher_transvoxel.cpp +++ b/meshers/transvoxel/voxel_mesher_transvoxel.cpp @@ -133,8 +133,8 @@ void VoxelMesherTransvoxel::build_internal(const VoxelBuffer &voxels, unsigned i const Vector3i block_size = voxels.get_size(); // TODO No lod yet, but it's planned - const int lod_index = 0; - const int lod_scale = 1 << lod_index; + //const int lod_index = 0; + //const int lod_scale = 1 << lod_index; // Prepare vertex reuse cache m_block_size = block_size; diff --git a/voxel_isosurface_tool.cpp b/voxel_isosurface_tool.cpp index 491a66db..8d5d24a5 100644 --- a/voxel_isosurface_tool.cpp +++ b/voxel_isosurface_tool.cpp @@ -33,7 +33,7 @@ namespace { inline void do_op(VoxelBuffer &buffer, int x, int y, int z, float d1, VoxelIsoSurfaceTool::Operation op) { - float res; + float res=0; switch (op) {