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);
|
|
|
|
vec4 hud = texture2D(tex[1], texcoord);
|
|
|
|
gl_FragColor = vec4(mix(map.rgb,hud.rgb,hud.a),1.0);
|
2014-03-24 07:21:30 +00:00
|
|
|
}
|