first build attempt

This commit is contained in:
2026-04-23 08:05:03 -07:00
parent a75186cab6
commit f68524a6ae
125 changed files with 23271 additions and 463 deletions

20
shaders/text.frag Normal file
View File

@@ -0,0 +1,20 @@
/*
* MIT License
* Author: Mark Allyn
*
* text.frag — FreeType glyph-atlas fragment shader.
* The atlas is a single-channel GL_RED texture; the sampled value
* is used as alpha and multiplied by the text colour uniform.
*/
#version 330 core
in vec2 vTexCoord;
out vec4 fragColor;
uniform sampler2D u_glyphAtlas;
uniform vec3 u_textColor;
void main() {
float alpha = texture(u_glyphAtlas, vTexCoord).r;
fragColor = vec4(u_textColor, alpha);
}