add freetype-based text rendering and box labels

This commit is contained in:
vottozi committed 2026-01-22 15:54:21 +06:00
1 parent 96d879076a
commit f41228acf8
9 files changed
+406 -9

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#version 330 core
in vec2 TexCoord;
out vec4 FragColor;
uniform sampler2D uText;
uniform vec3 uColor;
void main() {
float a = texture(uText, TexCoord).r; // glyph alpha in RED channel
FragColor = vec4(uColor, a);
}