HUD-Texture renders.

HUD-Texture renders and the whole screen is black.

Still TODO:

- Will have to sort out alpha
- Clean up

refs #472 @5h
This commit is contained in:
Stefan Dresselhaus
2014-04-04 11:15:00 +02:00
parent 8e0450a712
commit ba84ede01d
6 changed files with 135 additions and 48 deletions

View File

@ -1,8 +1,10 @@
#version 330
#version 110
uniform sampler2D blitTexture;
uniform sampler2D tex;
varying vec2 texcoord;
void main(void)
void main()
{
gl_FragColor = texture2D(tex, texcoord);
}

View File

@ -1,6 +1,10 @@
#version 330
#version 110
attribute vec2 position;
varying vec2 texcoord;
void main()
{
//null-program
gl_Position = vec4(position, 0.0, 1.0);
texcoord = position * vec2(0.5) + vec2(0.5);
}