Added camera operations and better input handling

This commit is contained in:
Julian Nießner
2018-05-07 16:58:15 +02:00
parent 1039a0fdb6
commit 51eff2d983
9 changed files with 118 additions and 27 deletions

View File

@@ -3,9 +3,12 @@
layout (location = 0) in vec2 aPos;
layout (location = 1) in vec2 texCoord;
uniform mat4 projection;
uniform mat4 view;
out vec2 TexCoord;
void main() {
gl_Position = vec4(aPos.x,aPos.y,0.,1.0);
gl_Position = projection * view * vec4(aPos.xy,0.0,1.0);
TexCoord = texCoord;
}