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:
@ -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);
|
||||
}
|
@ -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);
|
||||
}
|
Reference in New Issue
Block a user