summaryrefslogtreecommitdiff
path: root/data/shaders/default-fragment.glsl
blob: a447a79255ab0e0753d8820acd271db3f202b02c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#version 130

in vec2 frag_tex;
uniform vec4 color;
uniform sampler2D color_texture;
uniform bool use_texture;

void main (void) {
  if(use_texture) {
    gl_FragColor = texture2D(color_texture, frag_tex) * color;
  } else {
    gl_FragColor = color;
  }
}