Skip to content
Snippets Groups Projects
Commit 65112ea4 authored by Pascal Engeler's avatar Pascal Engeler
Browse files

absorbed scaling into model transformation

parent 64cb671d
Branches
No related tags found
No related merge requests found
......@@ -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*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment