You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
241 B

#version 310 es
in mediump float ps;
invariant gl_Position;
void main()
{
gl_Position = vec4(ps);
gl_Position *= float(4 - gl_VertexIndex);
gl_PointSize = ps;
gl_PointSize *= float(5 - gl_InstanceIndex);
}