History

Added aspect fields to cuboids.

Andrzej Kapolka committed 12 years ago

Commit bce01471 parent d3761cd3 files · +42 −8Browse files

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

Unified · Split

interface/src/MetavoxelSystem.cpp+1−0
@@ -2357,6 +2357,7 @@ void CuboidRenderer::renderUnclipped(const glm::vec4& color, Mode mode) { · 2356 unmodified lines
2357 glm::quat rotation = cuboid->getRotation();2357 glm::quat rotation = cuboid->getRotation();
2358 glm::vec3 axis = glm::axis(rotation);2358 glm::vec3 axis = glm::axis(rotation);
2359 glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z);2359 glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z);
2360 glScalef(1.0f, cuboid->getAspectY(), cuboid->getAspectZ());
2360 2361
2361 glutSolidCube(cuboid->getScale() * 2.0f);2362 glutSolidCube(cuboid->getScale() * 2.0f);
2362 2363