Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 243 Bytes
#version 330 core
uniform sampler2D tex_image;
uniform vec4 text_color = vec4(1.0, 1.0, 1.0, 1.0);
in vec2 tex_coord;
out vec4 color;
void main(){
float intensity = texture(tex_image, tex_coord).r;
color = vec4(intensity)*text_color;
}