BLT-With-Graphics-Template/include/blt/gfx/renderer/shaders/2d_font.frag

18 lines
295 B
GLSL
Raw Normal View History

2024-11-11 19:21:42 -05:00
#ifdef __cplusplus
#include <string>
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;
}
")";
#endif