feat: add ui renderer

This commit is contained in:
2026-03-21 11:19:23 +08:00
parent 3916a72ca3
commit c62f2baf7c
12 changed files with 204 additions and 36 deletions

View File

@@ -0,0 +1,18 @@
#version 460
layout (location = 0) in vec2 pos;
layout (location = 1) in vec2 texCoord;
layout (location = 2) in float layer;
out vec2 tc;
flat out int tex_layer;
uniform mat4 m_matrix;
uniform mat4 proj_matrix;
void main(void) {
gl_Position = proj_matrix * m_matrix * vec4(pos, 0.0, 1.0);
tc = texCoord;
tex_layer = int(layer);
}