stk-code_catmod/data/shaders/transparent.vert

23 lines
406 B
GLSL
Raw Normal View History

uniform mat4 ModelViewProjectionMatrix;
uniform mat4 TextureMatrix;
#if __VERSION__ >= 130
in vec3 Position;
in vec2 Texcoord;
2014-03-18 20:25:44 -04:00
in vec4 Color;
out vec2 uv;
2014-03-18 20:25:44 -04:00
out vec4 color;
#else
attribute vec3 Position;
attribute vec2 Texcoord;
varying vec2 uv;
#endif
void main()
{
uv = (TextureMatrix * vec4(Texcoord, 1., 1.)).xy;
gl_Position = ModelViewProjectionMatrix * vec4(Position, 1.);
2014-03-18 20:25:44 -04:00
color = Color;
}