getting text rendering working with stb_truetype

This commit is contained in:
2026-02-21 12:47:32 +01:00
parent 2165ac748d
commit 06f784d0b1
15 changed files with 637 additions and 237 deletions

View File

@@ -0,0 +1,11 @@
#version 330 core
out vec4 pixel_color;
in vec4 frag_color;
in vec2 frag_uv_position;
uniform sampler2D glyph_atlas;
void main() {
pixel_color = vec4(1,1,1,texture(glyph_atlas, frag_uv_position).r);
};