mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 08:50:58 +00:00
18 lines
287 B
GLSL
18 lines
287 B
GLSL
uniform mat4 mvp_mat;
|
|
/** Vertex position.
|
|
|
|
x, y, z, c
|
|
|
|
c is the color of the point.
|
|
*/
|
|
attribute vec4 vertex;
|
|
|
|
varying float color;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
gl_Position = mvp_mat * vec4 (vertex.xyz, 1.0);
|
|
gl_PointSize = max (1, 32768.0 * abs (1.0 / gl_Position.z));
|
|
color = vertex.w;
|
|
}
|