2020-01-15 21:04:23 +00:00
|
|
|
#ifndef VOXEL_CONSTANTS_H
|
|
|
|
#define VOXEL_CONSTANTS_H
|
|
|
|
|
2020-12-26 18:58:16 +00:00
|
|
|
#include <core/math/math_defs.h>
|
|
|
|
|
2020-01-15 21:04:23 +00:00
|
|
|
namespace VoxelConstants {
|
|
|
|
|
|
|
|
static const float MINIMUM_LOD_SPLIT_SCALE = 2.f;
|
|
|
|
static const float MAXIMUM_LOD_SPLIT_SCALE = 5.f;
|
|
|
|
static const unsigned int MAX_LOD = 32;
|
2020-10-22 22:43:31 +01:00
|
|
|
static const unsigned int MAX_VOLUME_EXTENT = 0x1fffffff;
|
|
|
|
static const unsigned int MAX_VOLUME_SIZE = 2 * MAX_VOLUME_EXTENT; // 1,073,741,822 voxels
|
|
|
|
static const unsigned int MAIN_THREAD_MESHING_BUDGET_MS = 8;
|
2020-01-15 21:04:23 +00:00
|
|
|
|
2020-12-25 17:06:40 +00:00
|
|
|
static const float INV_0x7f = 1.f / 0x7f;
|
|
|
|
static const float INV_0x7fff = 1.f / 0x7fff;
|
2020-12-26 18:58:16 +00:00
|
|
|
static const float INV_TAU = 1.f / Math_TAU;
|
2020-12-25 17:06:40 +00:00
|
|
|
|
2020-01-15 21:04:23 +00:00
|
|
|
} // namespace VoxelConstants
|
|
|
|
|
|
|
|
#endif // VOXEL_CONSTANTS_H
|