a5c84822cc
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15068 178a84e3-b1eb-0310-8ba1-8eac791a3b58
19 lines
334 B
GLSL
19 lines
334 B
GLSL
#version 130
|
|
uniform vec2 center;
|
|
uniform vec2 size;
|
|
uniform vec2 texcenter;
|
|
uniform vec2 texsize;
|
|
|
|
in vec2 position;
|
|
in vec2 texcoord;
|
|
in uvec4 color;
|
|
out vec2 uv;
|
|
out vec4 col;
|
|
|
|
void main()
|
|
{
|
|
col = vec4(color) / 255.;
|
|
uv = texcoord * texsize + texcenter;
|
|
gl_Position = vec4(position * size + center, 0., 1.);
|
|
}
|