Showing the changes to interface/src/VoxelSystem.cpp (1 of 6 files). Show all
Unified · Split
| @@ -433,7 +433,7 @@ void VoxelSystem::render() { · 432 unmodified lines | |||
| 433 | 433 | ||
| 434 | // draw the number of voxels we have | 434 | // 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 drawing | 439 | // deactivate vertex and color arrays after drawing |