Showing the changes to interface/src/VoxelSystem.cpp (1 of 9 files). Show all
Unified · Split
| @@ -60,8 +60,8 @@ VoxelSystem::~VoxelSystem() { · 59 unmodified lines | |||
| 60 | pthread_mutex_destroy(&bufferWriteLock); | 60 | pthread_mutex_destroy(&bufferWriteLock); |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | void VoxelSystem::setViewerHead(Head *newViewerHead) { | 63 | void VoxelSystem::setViewerAvatar(Avatar *newViewerAvatar) { |
| 64 | viewerHead = newViewerHead; | 64 | viewerAvatar = newViewerAvatar; |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | ////////////////////////////////////////////////////////////////////////////////////////// | 67 | ////////////////////////////////////////////////////////////////////////////////////////// |
| @@ -187,7 +187,7 @@ int VoxelSystem::treeToArrays(VoxelNode *currentNode, const glm::vec3& nodePosi · 119 unmodified lines | |||
| 187 | int voxelsAdded = 0; | 187 | int voxelsAdded = 0; |
| 188 | 188 | ||
| 189 | float halfUnitForVoxel = powf(0.5, *currentNode->octalCode) * (0.5 * TREE_SCALE); | 189 | float halfUnitForVoxel = powf(0.5, *currentNode->octalCode) * (0.5 * TREE_SCALE); |
| 190 | glm::vec3 viewerPosition = viewerHead->getPosition(); | 190 | glm::vec3 viewerPosition = viewerAvatar->getPosition(); |
| 191 | 191 | ||
| 192 | // debug LOD code | 192 | // debug LOD code |
| 193 | glm::vec3 debugNodePosition; | 193 | glm::vec3 debugNodePosition; |