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
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

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