Create model matrix for Object

This commit is contained in:
2021-01-30 13:15:36 +01:00
parent 0594c87f77
commit 89ed1b9571
10 changed files with 100 additions and 33 deletions

View File

@@ -1,8 +1,10 @@
#version 330
uniform mat4 modelMatrix;
layout(location=0) in vec3 position;
void main()
{
gl_Position = vec4(position, 1.0);
gl_Position = modelMatrix * vec4(position, 1.0);
}