Implement active box using new draw item on draw layers

This commit is contained in:
Dan Paulat 2021-12-18 21:43:15 -06:00
parent 999d322985
commit d30b6d4011
13 changed files with 610 additions and 37 deletions

9
scwx-qt/gl/color.frag Normal file
View file

@ -0,0 +1,9 @@
#version 330 core
in vec4 color;
layout (location = 0) out vec4 fragColor;
void main()
{
fragColor = color;
}

13
scwx-qt/gl/color.vert Normal file
View file

@ -0,0 +1,13 @@
#version 330 core
layout (location = 0) in vec3 aVertex;
layout (location = 1) in vec4 aColor;
uniform mat4 uMVPMatrix;
out vec4 color;
void main()
{
gl_Position = uMVPMatrix * vec4(aVertex, 1.0f);
color = aColor;
}