COSC-3P98-Final-Project/include/shaders/text.frag

19 lines
334 B
GLSL
Raw Normal View History

2023-02-15 00:49:27 -05:00
#ifdef __cplusplus
#include <string>
std::string shader_text_frag = R"("
#version 300 es
precision mediump float;
in vec2 texture_coords;
out vec4 FragColor;
uniform sampler2D character;
uniform vec3 text_color;
void main() {
FragColor = vec4(text_color, 1.0f) * vec4(1.0, 1.0, 1.0, texture(text, TexCoords).r);
}
")";
#endif