Add overlay layer with time

This commit is contained in:
Dan Paulat 2021-08-08 08:25:32 -05:00
parent 5a97d99a34
commit d2d6cabf06
8 changed files with 292 additions and 1 deletions

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

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

9
scwx-qt/gl/overlay.vert Normal file
View file

@ -0,0 +1,9 @@
#version 330 core
layout (location = 0) in vec2 aVertex;
uniform mat4 uMVPMatrix;
void main()
{
gl_Position = uMVPMatrix * vec4(aVertex, 0.0f, 1.0f);
}