pioneers/shaders/ui/fragment.shader
Stefan Dresselhaus 189f9f84fa Textures work now.
Scene gets rendered and alpha-overlayed with HUD-Texture.

fixes #472 @2h
2014-04-05 15:53:49 +02:00

11 lines
224 B
GLSL

#version 110
uniform sampler2D tex[2];
varying vec2 texcoord;
void main()
{
vec4 map = texture2D(tex[0], texcoord);
vec4 hud = texture2D(tex[1], texcoord);
gl_FragColor = vec4(mix(map.rgb,hud.rgb,hud.a),1.0);
}