]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Improve calculation of the point sizes
authorapo <apo@opencascade.com>
Fri, 16 Dec 2005 08:04:23 +0000 (08:04 +0000)
committerapo <apo@opencascade.com>
Fri, 16 Dec 2005 08:04:23 +0000 (08:04 +0000)
resources/Vertex_Program_ARB.txt

index e9e7cde09572696b0fa12f1d266075b4707591ab..ce6147fff17adef700db9f39fad22e01803a223c 100755 (executable)
@@ -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 );
 }