summaryrefslogtreecommitdiffhomepage
path: root/shaders/tile-shader.frag
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/tile-shader.frag')
-rw-r--r--shaders/tile-shader.frag3
1 files changed, 2 insertions, 1 deletions
diff --git a/shaders/tile-shader.frag b/shaders/tile-shader.frag
index 84bcac45..13bc462c 100644
--- a/shaders/tile-shader.frag
+++ b/shaders/tile-shader.frag
@@ -1,10 +1,11 @@
precision highp float;
uniform sampler2DRect 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);
+ color = vec4(texture(sampler, frag_texcoords).rgb, 1) * tint;
}