#version 330 core

in vec2 texture_coords;

uniform sampler2D text_sampler;  //   Mono-colored bitmap image
uniform vec3 text_colour;

out vec4 colour;

void main()
{
	vec4 sampled = vec4 (1.0, 1.0, 1.0, texture(text_sampler, texture_coords).r);
    colour = vec4(text_colour, 1.0) * sampled;
	 if( colour.a < 0.1 ) discard;
}
