Unused functions

master
Marc Gilleron 2021-04-30 01:34:59 +01:00
parent 1f60b9c7e9
commit 7e905913c9
1 changed files with 0 additions and 9 deletions

View File

@ -15,15 +15,6 @@ inline uint8_t sign_f(float v) {
return v < 0.f;
}
// Wrapped to invert SDF data, Transvoxel apparently works backwards?
inline float get_voxel_f(const VoxelBuffer &vb, int x, int y, int z, int channel) {
return -vb.get_voxel_f(x, y, z, channel);
}
inline float get_voxel_f(const VoxelBuffer &vb, Vector3i pos, int channel) {
return get_voxel_f(vb, pos.x, pos.y, pos.z, channel);
}
Vector3 get_border_offset(const Vector3 pos, const int lod_index, const Vector3i block_size) {
// When transition meshes are inserted between blocks of different LOD, we need to make space for them.
// Secondary vertex positions can be calculated by linearly transforming positions inside boundary cells