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
48}48}
49 49
50MetavoxelLOD MetavoxelSystem::getLOD() const {50MetavoxelLOD MetavoxelSystem::getLOD() const {
51 const float FIXED_LOD_THRESHOLD = 0.01f;51 // the LOD threshold is temporarily tied to the avatar LOD parameter
52 return MetavoxelLOD(Application::getInstance()->getCamera()->getPosition(), FIXED_LOD_THRESHOLD);52 const float BASE_LOD_THRESHOLD = 0.01f;
53 return MetavoxelLOD(Application::getInstance()->getCamera()->getPosition(),
54 BASE_LOD_THRESHOLD * Menu::getInstance()->getAvatarLODDistanceMultiplier());
53}55}
54 56
55void MetavoxelSystem::simulate(float deltaTime) {57void MetavoxelSystem::simulate(float deltaTime) {