From 3a13cd803f88672cc56d6139013710d2f305b863 Mon Sep 17 00:00:00 2001 From: daw42 Date: Wed, 12 Jun 2019 10:44:14 -0700 Subject: [PATCH] Default mat4 constructor fixes. --- chapter04/sceneprojtex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter04/sceneprojtex.cpp b/chapter04/sceneprojtex.cpp index 4e5d40b..353b6c0 100644 --- a/chapter04/sceneprojtex.cpp +++ b/chapter04/sceneprojtex.cpp @@ -31,7 +31,7 @@ void SceneProjTex::initScene() vec3 projUp = vec3(0.0f,1.0f,0.0f); mat4 projView = glm::lookAt(projPos, projAt, projUp); mat4 projProj = glm::perspective(glm::radians(30.0f), 1.0f, 0.2f, 1000.0f); - mat4 projScaleTrans = glm::translate(mat4(), vec3(0.5f)) * glm::scale(mat4(), vec3(0.5f)); + mat4 projScaleTrans = glm::translate(mat4(1.0f), vec3(0.5f)) * glm::scale(mat4(1.0f), vec3(0.5f)); prog.setUniform("ProjectorMatrix", projScaleTrans * projProj * projView); // Load texture file