2014-04-04 09:15:00 +00:00
|
|
|
#version 110
|
2014-03-24 07:21:30 +00:00
|
|
|
|
2014-04-05 13:53:49 +00:00
|
|
|
uniform sampler2D tex[2];
|
2014-04-04 09:15:00 +00:00
|
|
|
varying vec2 texcoord;
|
2014-03-24 07:21:30 +00:00
|
|
|
|
2014-04-04 09:15:00 +00:00
|
|
|
void main()
|
2014-03-24 07:21:30 +00:00
|
|
|
{
|
2014-04-05 13:53:49 +00:00
|
|
|
vec4 map = texture2D(tex[0], texcoord);
|
2014-04-22 14:35:17 +00:00
|
|
|
vec4 hud = texture2D(tex[1], vec2(texcoord.x,-texcoord.y));
|
2014-04-05 13:53:49 +00:00
|
|
|
gl_FragColor = vec4(mix(map.rgb,hud.rgb,hud.a),1.0);
|
2014-04-22 14:35:17 +00:00
|
|
|
}
|