Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1219,9 +1219,9 @@ void VoxelSystem::falseColorizeOccluded() { · 1218 unmodified lines | |||
| 1219 | AABox box(glm::vec3(0.0125,0,0.025), 0.0125); | 1219 | AABox box(glm::vec3(0.0125,0,0.025), 0.0125); |
| 1220 | box.scale(TREE_SCALE); | 1220 | box.scale(TREE_SCALE); |
| 1221 | args.occluder = args.viewFrustum->getProjectedShadow(box); | 1221 | args.occluder = args.viewFrustum->getProjectedShadow(box); |
| 1222 | glm::vec3 position = args.viewFrustum->getPosition() * (1.0f/TREE_SCALE); | ||
| 1222 | 1223 | ||
| 1223 | _tree->recurseTreeWithOperationDistanceSorted(falseColorizeOccludedOperation, | 1224 | _tree->recurseTreeWithOperationDistanceSorted(falseColorizeOccludedOperation, position, (void*)&args); |
| 1224 | args.viewFrustum->getPosition(), (void*)&args); | ||
| 1225 | setupNewVoxelsForDrawing(); | 1225 | setupNewVoxelsForDrawing(); |
| 1226 | } | 1226 | } |
| 1227 | 1227 | ||