History

various changes to help debug render pipeline - fixing some cases where TREE_SCALE was not using constant in prep for making TREE_SCALE larger - added createLine() to VoxelTree - added axis lines made of voxels to scene - added corner points made of voxels to scene

ZappoMan committed 13 years ago

Commit a4f2dc21 parent d7e34d26 files · +50 −18Browse files

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

Unified · Split

interface/src/VoxelSystem.cpp+1−1
@@ -433,7 +433,7 @@ void VoxelSystem::render() { · 432 unmodified lines
433 433
434 // draw the number of voxels we have434 // draw the number of voxels we have
435 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _vboIndicesID);435 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _vboIndicesID);
436 glScalef(10, 10, 10);436 glScalef(TREE_SCALE, TREE_SCALE, TREE_SCALE);
437 glDrawElements(GL_TRIANGLES, 36 * _voxelsInArrays, GL_UNSIGNED_INT, 0);437 glDrawElements(GL_TRIANGLES, 36 * _voxelsInArrays, GL_UNSIGNED_INT, 0);
438 438
439 // deactivate vertex and color arrays after drawing439 // deactivate vertex and color arrays after drawing