f279f32dec87817af5908a2962861c276e51291a
[tar-legacy.git] / MCDV / shaders / ss_precomp_objectives.fs
1 #version 330 core
2 // OPENGL
3 // ____________________________________________________________________________________________
4 in vec2 TexCoords;
5 out vec4 FragColor;
6
7 // SAMPLER UNIFORMS
8 // Image Inputs _______________________________________________________________________________
9 uniform sampler2D tex_in; // Background texture
10
11 // SHADER PROGRAM
12 // ____________________________________________________________________________________________
13 // ( Write all your shader code & functions here )
14
15 void main()
16 {
17 vec4 sample = vec4(texture(tex_in, TexCoords));
18 FragColor = vec4(sample.r, 0, 0, sample.r + sample.g);
19 }