From 90c99734bf2d124068c4f74e9973dc84d1526f36 Mon Sep 17 00:00:00 2001 From: 0x01FE <0x01fe@0x01fe.net> Date: Mon, 10 Nov 2025 20:17:17 -0600 Subject: [PATCH] scale cube.obj by 0.5 because it's twice as large as it should be --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 45b93e9..ce43561 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -178,6 +178,8 @@ void draw_cube(glm::ivec3 coords, Shader& shader, unsigned int VAO, size_t index glm::mat4 model = glm::mat4(1.0f); model = glm::translate(model, glm::vec3(coords)); + model = glm::scale(model, glm::vec3(0.5f, 0.5f, 0.5f)); + // Calculate MVP matrix glm::mat4 mvp = projection * view * model; @@ -190,6 +192,7 @@ void draw_cube(glm::ivec3 coords, Shader& shader, unsigned int VAO, size_t index glBindVertexArray(VAO); glDrawElements(GL_TRIANGLES, indexCount, GL_UNSIGNED_INT, nullptr); } + int main() { // 1. --- Initialize GLFW --- if (!glfwInit()) {