#ifdef __cplusplus #include const std::string shader_2d_font_frag = R"(" #version 300 es precision mediump float; layout (location = 0) out vec4 FragColor; in vec2 uv; uniform sampler2D tex; uniform vec4 color; void main() { FragColor = texture(tex, uv).r * color; if (FragColor.a < 0.2) discard; } ")"; #endif