summaryrefslogtreecommitdiff
path: root/bullet_fragment.glsl
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-05-17 01:22:56 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-05-17 01:22:56 +0200
commit33c2afafa0c6b936dace4b2b6203f03a89823049 (patch)
tree4124060cb020b821ced20a385f9f7db41afb79f5 /bullet_fragment.glsl
parent4aeeed5a6f88cd6d34b1b6f8584f880c9a84070a (diff)
Added colorization to fragment shader.
Diffstat (limited to 'bullet_fragment.glsl')
-rw-r--r--bullet_fragment.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/bullet_fragment.glsl b/bullet_fragment.glsl
index 550585b..66f53a4 100644
--- a/bullet_fragment.glsl
+++ b/bullet_fragment.glsl
@@ -7,5 +7,6 @@ void main() {
l_uv -= l_offset;
l_uv = vec2(v_tex_rot * vec4(l_uv, 0.0, 1.0));
l_uv += l_offset;
- gl_FragColor = vec4(texture2D(tex, l_uv)) * gl_Color;
+ gl_FragColor = vec4(texture2D(tex, l_uv));
+ gl_FragColor.xyz += gl_Color.xyz - gl_Color.xyz * gl_FragColor.x;
}