2 attribute float clampSize;
3 attribute float geomSize;
4 attribute float minSize;
5 attribute float maxSize;
6 attribute float magnification;
10 gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
12 gl_FrontColor = gl_Color;
15 if( mode == 0 ) // Results
16 size = minSize + ( maxSize - minSize ) * ( 1 - gl_Color.w / 241.0f );
17 else // Geometry and Uniform colored outside cursor
20 gl_PointSize = clamp( magnification * size * gl_ProjectionMatrix[1].y, 2.0, clampSize );