quakeforge/libs/video/renderer/glsl/quakepnt.vert
Bill Currie 3b07928373 Fix an inconsistent numeric constant.
While checking the shaders to see if there might be anything obvious to
work around the current nouveau shader issues, I found a 1 that should have
been a 1.0. I'm surprised it ever compiled.
2012-04-20 16:30:25 +09:00

19 lines
306 B
GLSL

uniform mat4 mvp_mat;
attribute float vcolor;
/** Vertex position.
x, y, z, c
c is the color of the point.
*/
attribute vec3 vertex;
varying float color;
void
main (void)
{
gl_Position = mvp_mat * vec4 (vertex, 1.0);
gl_PointSize = max (1.0, 1024.0 * abs (1.0 / gl_Position.z));
color = vcolor;
}