mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
For now, tie the metavoxel LOD threshold to the avatar LOD parameter.
This commit is contained in:
parent
817b50c7b8
commit
d858e20af2
1 changed files with 4 additions and 2 deletions
|
@ -48,8 +48,10 @@ void MetavoxelSystem::init() {
|
|||
}
|
||||
|
||||
MetavoxelLOD MetavoxelSystem::getLOD() const {
|
||||
const float FIXED_LOD_THRESHOLD = 0.01f;
|
||||
return MetavoxelLOD(Application::getInstance()->getCamera()->getPosition(), FIXED_LOD_THRESHOLD);
|
||||
// the LOD threshold is temporarily tied to the avatar LOD parameter
|
||||
const float BASE_LOD_THRESHOLD = 0.01f;
|
||||
return MetavoxelLOD(Application::getInstance()->getCamera()->getPosition(),
|
||||
BASE_LOD_THRESHOLD * Menu::getInstance()->getAvatarLODDistanceMultiplier());
|
||||
}
|
||||
|
||||
void MetavoxelSystem::simulate(float deltaTime) {
|
||||
|
|
Loading…
Reference in a new issue