Showing the changes to interface/src/ParticleTreeRenderer.cpp (1 of 7 files). Show all
Unified · Split
| @@ -27,11 +27,16 @@ void ParticleTreeRenderer::renderElement(OctreeElement* element) { · 26 unmodified lines | ||
| 27 | 27 | |
| 28 | 28 | uint16_t numberOfParticles = particles.size(); |
| 29 | 29 | |
| 30 | + glPointSize(20.0f); | |
| 30 | 31 | glBegin(GL_POINTS); |
| 31 | 32 | for (uint16_t i = 0; i < numberOfParticles; i++) { |
| 32 | 33 | const Particle& particle = particles[i]; |
| 33 | 34 | // render particle aspoints |
| 34 | − glVertex3f(particle.getPosition().x, particle.getPosition().y, particle.getPosition().z); | |
| 35 | + glm::vec3 position = particle.getPosition() * (float)TREE_SCALE; | |
| 36 | + | |
| 37 | + printf("glVertex3f(%f, %f, %f)\n", position.x, position.y, position.z); | |
| 38 | + | |
| 39 | + glVertex3f(position.x, position.y, position.z); | |
| 35 | 40 | } |
| 36 | 41 | glEnd(); |
| 37 | 42 | } |