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
@@ -2,15 +2,13 @@
layout (location = 0) in vec3 position;
layout (location = 1) in vec4 color;
layout (location = 2) in vec4 boxes;
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
out vec4 vColor;
out vec2 boxOut;
out vec2 boxIn;
uniform mat4 worldMat;
void main()
{
gl_Position = worldMat * vec4(position.xyz,1);
gl_Position = theMat * vec4(position.xyz,1);
vColor = color;
boxOut = boxes.xy ;
boxIn = boxes.zw ;