2.0
[tar-legacy.git] / MCDV / shaders / dev.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 usampler2D uMainTex; // Buyzones
10 uniform sampler2D MainTex;
11
12 // SHADER PROGRAM
13 // ____________________________________________________________________________________________
14 // ( Write all your shader code & functions here )
15
16 void main(){
17 uint flags = texture(uMainTex, TexCoords).r;
18
19 FragColor = vec4(float((flags >> 0) & 0x1U),0,0,1);
20 }