2013-11-06 18:17:18 -05:00
|
|
|
// SuperTuxKart - a fun racing game with go-kart
|
|
|
|
// Copyright (C) 2013 the SuperTuxKart team
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
|
|
|
// as published by the Free Software Foundation; either version 3
|
|
|
|
// of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
2014-02-28 11:29:05 -05:00
|
|
|
|
2013-11-30 16:33:06 -05:00
|
|
|
uniform sampler2D tex;
|
2012-01-10 18:40:14 -05:00
|
|
|
uniform float transparency;
|
2014-02-28 11:29:05 -05:00
|
|
|
|
|
|
|
#if __VERSION__ >= 130
|
2014-01-08 19:17:28 -05:00
|
|
|
in vec2 uv;
|
2014-01-19 13:31:00 -05:00
|
|
|
out vec4 FragColor;
|
2014-02-28 11:29:05 -05:00
|
|
|
#else
|
|
|
|
varying vec2 uv;
|
|
|
|
#define FragColor gl_FragColor
|
|
|
|
#endif
|
|
|
|
|
2011-12-26 11:46:29 -05:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2014-04-03 08:46:35 -04:00
|
|
|
vec4 Color = texture(tex, uv);
|
|
|
|
Color.a *= transparency;
|
|
|
|
FragColor = vec4(Color.rgb * Color.a, Color.a);
|
2011-12-26 11:46:29 -05:00
|
|
|
}
|