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
23572357 glm::quat rotation = cuboid->getRotation();
23582358 glm::vec3 axis = glm::axis(rotation);
23592359 glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z);
2360+ glScalef(1.0f, cuboid->getAspectY(), cuboid->getAspectZ());
23602361
23612362 glutSolidCube(cuboid->getScale() * 2.0f);
23622363