From: apo Date: Fri, 16 Dec 2005 08:04:23 +0000 (+0000) Subject: Improve calculation of the point sizes X-Git-Tag: TG-D5-38-2003_D2005-20-12~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=95a309ec91ad3ca793c7064f730d1c0e580202ab;p=modules%2Fvisu.git Improve calculation of the point sizes --- diff --git a/resources/Vertex_Program_ARB.txt b/resources/Vertex_Program_ARB.txt index e9e7cde0..ce6147ff 100755 --- a/resources/Vertex_Program_ARB.txt +++ b/resources/Vertex_Program_ARB.txt @@ -17,5 +17,5 @@ void main() else // Geometry and Uniform colored outside cursor size = geomSize; - gl_PointSize = clamp( magnification * size * gl_ProjectionMatrix[0].x, 2, clampSize ); + gl_PointSize = clamp( magnification * size * gl_ProjectionMatrix[1].y, 2.0, clampSize ); }