Update twoD shaders

This commit is contained in:
2021-06-24 17:35:50 +02:00
parent 93936346f7
commit 7ab932db93
6 changed files with 8 additions and 28 deletions
+2 -4
View File
@@ -1,12 +1,10 @@
#version 430 core
layout (location = 0) in vec3 position;
layout (location = 1) in vec4 col;
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
out vec4 vCol;
uniform mat4 worldMat;
void main()
{
gl_Position = worldMat * vec4(position,1);
gl_Position = theMat * vec4(position,1);
vCol = col;
}