Add camera linear rotation

This commit is contained in:
2016-06-03 17:05:28 +10:00
parent 472b952408
commit 540b871c58
4 changed files with 133 additions and 21 deletions
+4 -2
View File
@@ -7,11 +7,13 @@ layout (location = 2) in vec2 texCoord;
out vec3 OurColor;
out vec2 TexCoord;
uniform mat4 transform;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
gl_Position = transform * vec4(position, 1.0f);
gl_Position = projection * view * model * vec4(position, 1.0f);
OurColor = color;
TexCoord = texCoord;
}