diff --git a/src/main.cpp b/src/main.cpp index 84c4d74f97759ac102be740e174bf6269a38f0cc..14c39386cb7cd7b5ad2136e708e3ff540614dabe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -92,8 +92,10 @@ int main(int argc, char** argv) { /*Update projection, view, model*/ glm::mat4 projection = glm::perspective(glm::radians(45.f), static_cast<float>(WIDTH) / static_cast<float>(HEIGHT), 0.1f, 100.0f); glm::mat4 view = camera.GetViewMatrix(); + //model specific + float scale = 0.5; glm::vec3 pos(-0.5, -0.5, 0); - glm::mat4 model = glm::translate(glm::mat4(1.0f), pos); + glm::mat4 model = glm::translate(scale_z(heightmap->minZ(), scale), pos); /*Check if we want to get the height*/