Added transformables
This commit is contained in:
parent
98425f45c8
commit
f86fcad89f
5 changed files with 544 additions and 3 deletions
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue