quakeforge/libs/video/renderer/glsl/quakebsp.vert

19 lines
251 B
GLSL
Raw Normal View History

2012-01-08 11:39:36 +00:00
uniform mat4 mvp_mat;
2012-01-28 12:20:34 +00:00
attribute vec4 vcolor;
2012-01-08 11:39:36 +00:00
attribute vec4 tlst;
attribute vec4 vertex;
varying vec2 tst;
varying vec2 lst;
2012-01-28 12:20:34 +00:00
varying vec4 color;
2012-01-08 11:39:36 +00:00
void
main (void)
{
gl_Position = mvp_mat * vertex;
tst = tlst.st;
lst = tlst.pq;
2012-01-28 12:20:34 +00:00
color = vcolor;
2012-01-08 11:39:36 +00:00
}