From: ouv Date: Thu, 22 Sep 2005 12:47:19 +0000 (+0000) Subject: Geometry presentation X-Git-Tag: BR-D5-38-2003_D2005-12-10~161 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f4353691cbaa7d0fdf550de4471e20d1544ecc1;p=modules%2Fvisu.git Geometry presentation --- diff --git a/resources/Vertex_Program_ARB.txt b/resources/Vertex_Program_ARB.txt index 58c060b2..cd73e662 100755 --- a/resources/Vertex_Program_ARB.txt +++ b/resources/Vertex_Program_ARB.txt @@ -5,7 +5,9 @@ attribute float attrib2; attribute float attrib3; attribute float clamp; +attribute float geomSize; attribute float minSize; +attribute float attrib4; attribute float maxSize; attribute float magnification; @@ -14,6 +16,7 @@ float3 ComputePointSize( float3 inColor ) float a1 = attrib1; float a2 = attrib2; float a3 = attrib3; + float a4 = attrib4; int r = inColor.x * 255; int g = inColor.y * 255; @@ -76,7 +79,11 @@ void main() gl_FrontColor = gl_Color; - float size = ComputePointSize( gl_Color ); + float size; + if( geomSize == 0 ) + size = ComputePointSize( gl_Color ); + else + size = geomSize; //clamp = 100.0; gl_PointSize = min( magnification * size * gl_ProjectionMatrix[0].x, clamp );