summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/shaders/default-fragment.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/shaders/default-fragment.glsl b/data/shaders/default-fragment.glsl
index e90adbe..21bb756 100644
--- a/data/shaders/default-fragment.glsl
+++ b/data/shaders/default-fragment.glsl
@@ -1,8 +1,9 @@
#version 130
in vec2 frag_tex;
+uniform vec4 color;
uniform sampler2D color_texture;
void main (void) {
- gl_FragColor = texture2D(color_texture, frag_tex);
+ gl_FragColor = texture2D(color_texture, frag_tex) * color;
}