History

make sure position is in voxel units NOT TREE_SCALE

ZappoMan committed 13 years ago

Commit b8e51941 parent 0f234d71 file · +2 −2Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all

Unified · Split

interface/src/VoxelSystem.cpp+2−2
@@ -1219,9 +1219,9 @@ void VoxelSystem::falseColorizeOccluded() { · 1218 unmodified lines
12191219 AABox box(glm::vec3(0.0125,0,0.025), 0.0125);
12201220 box.scale(TREE_SCALE);
12211221 args.occluder = args.viewFrustum->getProjectedShadow(box);
1222+ glm::vec3 position = args.viewFrustum->getPosition() * (1.0f/TREE_SCALE);
12221223
1223− _tree->recurseTreeWithOperationDistanceSorted(falseColorizeOccludedOperation,
1224− args.viewFrustum->getPosition(), (void*)&args);
1224+ _tree->recurseTreeWithOperationDistanceSorted(falseColorizeOccludedOperation, position, (void*)&args);
12251225 setupNewVoxelsForDrawing();
12261226 }
12271227

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t