Added camera operations and better input handling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user