Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -48,8 +48,10 @@ void MetavoxelSystem::init() { · 47 unmodified lines | ||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | 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()); | |
| 53 | 55 | } |
| 54 | 56 | |
| 55 | 57 | void MetavoxelSystem::simulate(float deltaTime) { |