mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 03:32:31 +02:00
Fix build warnings
This commit is contained in:
parent
49f1ecb1bf
commit
07ea79689e
2 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ void LODManager::setVisibilityDistance(float distance) {
|
|||
|
||||
void LODManager::setLODAngleDeg(float lodAngle) {
|
||||
auto newLODAngleDeg = std::max(0.001f, std::min(lodAngle, 90.f));
|
||||
auto newLODHalfAngle = glm::radians(newLODAngleDeg * 0.5);
|
||||
auto newLODHalfAngle = glm::radians(newLODAngleDeg * 0.5f);
|
||||
_lodHalfAngle = newLODHalfAngle;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ const int HALF_TREE_SCALE = TREE_SCALE / 2;
|
|||
|
||||
// This controls the LOD. Larger number will make smaller voxels visible at greater distance.
|
||||
const float DEFAULT_VISIBILITY_DISTANCE_FOR_UNIT_ELEMENT = 400.0f; // max distance where a 1x1x1 cube is visible for 20:20 vision
|
||||
const float UNIT_ELEMENT_MAX_EXTENT = sqrt(3.0f) / 2.0f; // A unit cube tilted on its edge will have its edge jutting out sqrt(3)/2 units from the center
|
||||
const float UNIT_ELEMENT_MAX_EXTENT = sqrtf(3.0f) / 2.0f; // A unit cube tilted on its edge will have its edge jutting out sqrt(3)/2 units from the center
|
||||
const float DEFAULT_OCTREE_SIZE_SCALE = TREE_SCALE * DEFAULT_VISIBILITY_DISTANCE_FOR_UNIT_ELEMENT;
|
||||
|
||||
// Since entities like models live inside of octree cells, and they themselves can have very small mesh parts,
|
||||
|
|
Loading…
Reference in a new issue