mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 07:21:06 +01:00
Port the glyphy-demo to use the hb-gpu API. Builds as util/hb-gpu and requires GLEW, GLFW3, and OpenGL 3.3. Includes default text and embedded font for quick testing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12 lines
190 B
GLSL
12 lines
190 B
GLSL
in vec2 v_texcoord;
|
|
flat in uint v_glyphLoc;
|
|
|
|
out vec4 fragColor;
|
|
|
|
void main ()
|
|
{
|
|
float coverage = hb_gpu_render (v_texcoord, v_glyphLoc);
|
|
|
|
fragColor = vec4 (0.0, 0.0, 0.0, coverage);
|
|
}
|