18 lines
295 B
GLSL
18 lines
295 B
GLSL
#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 |