mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 07:50:04 +00:00
Add overlay layer with time
This commit is contained in:
parent
5a97d99a34
commit
d2d6cabf06
8 changed files with 292 additions and 1 deletions
9
scwx-qt/gl/overlay.frag
Normal file
9
scwx-qt/gl/overlay.frag
Normal 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
9
scwx-qt/gl/overlay.vert
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue