Commit 5890f93a authored by Christopher Tenter's avatar Christopher Tenter

Add ScreenQuad test shader

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17362 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7d3cf73a
#version 150
uniform vec2 offset;
uniform vec2 size;
in vec4 inPosition;
out vec2 vTexCoord;
void main()
{
gl_Position = inPosition * vec4(size, 1, 1) + vec4(offset, 0, 0);
vTexCoord = inPosition.xy * 0.5 + vec2(0.5, 0.5);
}
\ No newline at end of file
#version 150
uniform sampler2D Tex;
in vec2 vTexCoord;
out vec4 oColor;
void main()
{
oColor = texture2D(Tex, vTexCoord);
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment