History

For now, tie the metavoxel LOD threshold to the avatar LOD parameter.

Andrzej Kapolka committed 12 years ago

Commit d858e201 parent 817b50c1 file · +4 −2Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 1 file). Show all

Unified · Split

interface/src/MetavoxelSystem.cpp+4−2
@@ -48,8 +48,10 @@ void MetavoxelSystem::init() { · 47 unmodified lines
4848 }
4949
5050 MetavoxelLOD MetavoxelSystem::getLOD() const {
51− const float FIXED_LOD_THRESHOLD = 0.01f;
52− return MetavoxelLOD(Application::getInstance()->getCamera()->getPosition(), FIXED_LOD_THRESHOLD);
51+ // the LOD threshold is temporarily tied to the avatar LOD parameter
52+ const float BASE_LOD_THRESHOLD = 0.01f;
53+ return MetavoxelLOD(Application::getInstance()->getCamera()->getPosition(),
54+ BASE_LOD_THRESHOLD * Menu::getInstance()->getAvatarLODDistanceMultiplier());
5355 }
5456
5557 void MetavoxelSystem::simulate(float deltaTime) {