Skip to content
Snippets Groups Projects
Verified Commit 21562cea authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Fix cuboid scaling

parent 5a8ea64f
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ namespace vkcv::geometry {
const auto& position = getPosition();
const auto& size = getSize();
for (size_t i = 0; i < 8; i++) {
for (size_t i = 0; i < 24; i++) {
cuboidPositions[i * 3 + 0] = cuboidPositions[i * 3 + 0] * size.x + position.x;
cuboidPositions[i * 3 + 1] = cuboidPositions[i * 3 + 1] * size.y + position.y;
cuboidPositions[i * 3 + 2] = cuboidPositions[i * 3 + 2] * size.z + position.z;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment