mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-23 11:01:46 +00:00
3b07928373
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.
19 lines
306 B
GLSL
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;
|
|
}
|