Skip to content

Commit

Permalink
Default mat4 constructor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
daw42 authored Jun 12, 2019
1 parent 896d660 commit 3a13cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter04/sceneprojtex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a13cd8

Please sign in to comment.