diff --git a/voxel_buffer.cpp b/voxel_buffer.cpp index 2e991a0..aceb6c4 100644 --- a/voxel_buffer.cpp +++ b/voxel_buffer.cpp @@ -4,6 +4,7 @@ #include VoxelBuffer::VoxelBuffer() { + _channels[CHANNEL_ISOLEVEL].defval = 1.0; } VoxelBuffer::~VoxelBuffer() { diff --git a/voxel_map.cpp b/voxel_map.cpp index c523b79..bcc45b6 100644 --- a/voxel_map.cpp +++ b/voxel_map.cpp @@ -13,6 +13,8 @@ VoxelMap::VoxelMap() : for (unsigned int i = 0; i < VoxelBuffer::MAX_CHANNELS; ++i) { _default_voxel[i] = 0; } + + _default_voxel[VoxelBuffer::CHANNEL_ISOLEVEL] = 1.0; } VoxelMap::~VoxelMap() {