mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-11-19 02:47:18 +01:00
Default values for CHANNEL_ISOLEVEL should be 1.0 (i.e maximum distance)
This commit is contained in:
parent
c86a5c53e1
commit
10c2e69a0c
@ -4,6 +4,7 @@
|
||||
#include <string.h>
|
||||
|
||||
VoxelBuffer::VoxelBuffer() {
|
||||
_channels[CHANNEL_ISOLEVEL].defval = 1.0;
|
||||
}
|
||||
|
||||
VoxelBuffer::~VoxelBuffer() {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user