Stefan Dresselhaus
189f9f84fa
Scene gets rendered and alpha-overlayed with HUD-Texture. fixes #472 @2h
11 lines
224 B
GLSL
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);
|
|
} |