Fix bad value fetch

master
Marc Gilleron 2019-05-05 17:01:40 +01:00
parent 46784e4700
commit 4e9880fb8c
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ inline float get_isolevel_clamped(const VoxelBuffer &voxels, unsigned int x, uns
y = y >= voxels.get_size().y ? voxels.get_size().y - 1 : y;
z = z >= voxels.get_size().z ? voxels.get_size().z - 1 : z;
return voxels.get_voxel(x, y, z, VoxelBuffer::CHANNEL_ISOLEVEL);
return voxels.get_voxel_f(x, y, z, VoxelBuffer::CHANNEL_ISOLEVEL);
}
inline HermiteValue get_hermite_value(const VoxelBuffer &voxels, unsigned int x, unsigned int y, unsigned int z) {