diff options
Diffstat (limited to 'res/text.f.glsl')
-rw-r--r-- | res/text.f.glsl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/res/text.f.glsl b/res/text.f.glsl new file mode 100644 index 00000000..32266b3e --- /dev/null +++ b/res/text.f.glsl @@ -0,0 +1,11 @@ +#version 330 core +in vec2 TexCoords; + +uniform sampler2D text; +uniform vec3 textColor; + +void main() +{ + vec4 sampled = vec4(1.0, 1.0, 1.0, texture(text, TexCoords).r); + gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0) * sampled; +} |