--- a/share/hedgewars/Data/Shaders/default.fs Sun Jan 07 18:19:00 2018 +0100
+++ b/share/hedgewars/Data/Shaders/default.fs Sun Jan 07 19:01:06 2018 +0100
@@ -4,6 +4,7 @@
uniform sampler2D tex0;
uniform vec4 tint;
+uniform bool tintAdd;
uniform bool enableTexture;
varying vec2 tex;
@@ -12,7 +13,12 @@
void main()
{
if(enableTexture){
- gl_FragColor = texture2D(tex0, tex) * tint;
+ if (tintAdd){
+ tint.a = 0.0;
+ gl_FragColor = clamp(texture2D(tex0, tex) + tint, 0.0, 1.1);
+ }else{
+ gl_FragColor = texture2D(tex0, tex) * tint;
+ }
}else{
gl_FragColor = tint;
}