Vertex shader now has a transformation matrix built in.

This commit is contained in:
Harrison Deng 2020-02-04 14:43:02 -05:00
parent ca38a129d7
commit 20fa19fff5

View File

@ -1,7 +1,8 @@
#version 330 core
layout (location = 0) in vec3 aPosition;
in vec3 aPosition;
in mat4 aTransform;
void main()
{
gl_Position = vec4(aPosition, 1.0);
gl_Position = vec4(aPosition, 1) * aTransform;
}