mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
22 lines
289 B
GLSL
22 lines
289 B
GLSL
|
uniform mat4 mvp_mat;
|
||
|
attribute vec4 vcolor;
|
||
|
attribute vec2 vst;
|
||
|
/** Vertex position.
|
||
|
|
||
|
x, y, z, c
|
||
|
|
||
|
c is the color of the point.
|
||
|
*/
|
||
|
attribute vec3 vertex;
|
||
|
|
||
|
varying vec4 color;
|
||
|
varying vec2 st;
|
||
|
|
||
|
void
|
||
|
main (void)
|
||
|
{
|
||
|
gl_Position = mvp_mat * vec4 (vertex, 1.0);
|
||
|
color = vcolor;
|
||
|
st = vst;
|
||
|
}
|