mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Merge pull request #3663 from ey6es/metavoxels
Disconnect metavoxel LOD from avatar LOD.
This commit is contained in:
commit
05e9d614e1
1 changed files with 2 additions and 4 deletions
|
@ -110,11 +110,9 @@ int SimulateVisitor::visit(MetavoxelInfo& info) {
|
|||
void MetavoxelSystem::simulate(float deltaTime) {
|
||||
// update the lod
|
||||
{
|
||||
// the LOD threshold is temporarily tied to the avatar LOD parameter
|
||||
QWriteLocker locker(&_lodLock);
|
||||
const float BASE_LOD_THRESHOLD = 0.01f;
|
||||
_lod = MetavoxelLOD(Application::getInstance()->getCamera()->getPosition(),
|
||||
BASE_LOD_THRESHOLD * Menu::getInstance()->getAvatarLODDistanceMultiplier());
|
||||
const float DEFAULT_LOD_THRESHOLD = 0.01f;
|
||||
_lod = MetavoxelLOD(Application::getInstance()->getCamera()->getPosition(), DEFAULT_LOD_THRESHOLD);
|
||||
}
|
||||
|
||||
SimulateVisitor simulateVisitor(deltaTime, getLOD());
|
||||
|
|
Loading…
Reference in a new issue