mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
make sure position is in voxel units NOT TREE_SCALE
This commit is contained in:
parent
0f234d739e
commit
b8e51943ab
1 changed files with 2 additions and 2 deletions
|
@ -1219,9 +1219,9 @@ void VoxelSystem::falseColorizeOccluded() {
|
|||
AABox box(glm::vec3(0.0125,0,0.025), 0.0125);
|
||||
box.scale(TREE_SCALE);
|
||||
args.occluder = args.viewFrustum->getProjectedShadow(box);
|
||||
glm::vec3 position = args.viewFrustum->getPosition() * (1.0f/TREE_SCALE);
|
||||
|
||||
_tree->recurseTreeWithOperationDistanceSorted(falseColorizeOccludedOperation,
|
||||
args.viewFrustum->getPosition(), (void*)&args);
|
||||
_tree->recurseTreeWithOperationDistanceSorted(falseColorizeOccludedOperation, position, (void*)&args);
|
||||
setupNewVoxelsForDrawing();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue