summaryrefslogtreecommitdiffhomepage
path: root/shaders/tile.frag
blob: 5c070ebe1a9f126937e925897532aa911d39238b (plain)
1
2
3
4
5
6
7
8
9
10
11
precision highp float;

uniform sampler2D sampler;
layout (location = 2) uniform vec4 tint = vec4(1, 1, 1, 1);

noperspective in vec2 frag_texcoords;
out vec4 color;

void main() {
    color = vec4(texture(sampler, frag_texcoords).rgb, 1) * tint;
}