stk-code_catmod/data/shaders/texturedquad.vert
vincentlj 57d5d658a0 OGL32CTX: Fixes sourcerect in draw2DImage replacement
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14918 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-04 23:28:59 +00:00

15 lines
272 B
GLSL

#version 130
uniform vec2 center;
uniform vec2 size;
uniform vec2 texcenter;
uniform vec2 texsize;
in vec2 position;
in vec2 texcoord;
out vec2 tc;
void main()
{
tc = texcoord * texsize + texcenter;
gl_Position = vec4(position * size + center, 0., 1.);
}