fix shader uniform access
authoralfadur
Sun, 04 Aug 2019 02:38:11 +0300
changeset 15314 042a5e8d9c59
parent 15313 70d416a8f63f
child 15315 95281174e297
fix shader uniform access
share/hedgewars/Data/Shaders/default.fs
--- a/share/hedgewars/Data/Shaders/default.fs	Sun Aug 04 00:30:56 2019 +0200
+++ b/share/hedgewars/Data/Shaders/default.fs	Sun Aug 04 02:38:11 2019 +0300
@@ -14,8 +14,8 @@
 {
     if(enableTexture){
         if (tintAdd){
-            tint.a = 0.0;
-            gl_FragColor = clamp(texture2D(tex0, tex) + tint, 0.0, 1.1);
+            vec4 tint_ = vec4(tint.xyz, 0.0);
+            gl_FragColor = clamp(texture2D(tex0, tex) + tint_, 0.0, 1.1);
         }else{
             gl_FragColor = texture2D(tex0, tex) * tint;
         }