Fix gcc multiline comments, uninitialized vars, unused vars warnings
parent
0b854725f0
commit
5ad555c439
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue