Added transformables

This commit is contained in:
Robert 2021-01-22 01:13:01 +01:00
parent 98425f45c8
commit f86fcad89f
5 changed files with 544 additions and 3 deletions

View file

@ -6,9 +6,13 @@ layout (location = 2) in vec2 aUV;
out vec3 oCol;
out vec2 oUV;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
oCol = aCol;
oUV = aUV;
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
gl_Position = projection * view * model * vec4(aPos, 1.0);
}