]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fixed bug GVIEW10633 : "clamp" parameter is a reserved name in GLSL
authorouv <ouv@opencascade.com>
Thu, 24 Nov 2005 07:33:16 +0000 (07:33 +0000)
committerouv <ouv@opencascade.com>
Thu, 24 Nov 2005 07:33:16 +0000 (07:33 +0000)
resources/Vertex_Program_ARB.txt
src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx

index 0153917f3d9d73088217162df44050d387743cd8..e13d0258a4cf0b89f98f6e5812e28996064046a6 100755 (executable)
@@ -1,4 +1,4 @@
-attribute float clamp;
+attribute float clamp_size;
 
 void main()
 {
@@ -8,5 +8,5 @@ void main()
   gl_FrontColor.y = gl_Color.y;
   gl_FrontColor.z = gl_Color.z;
 
-  gl_PointSize = min( gl_Color.w * gl_ProjectionMatrix[0].x, clamp );
+  gl_PointSize = min( gl_Color.w * gl_ProjectionMatrix[0].x, clamp_size );
 }
index 208e8d3a21025d7b03ab075e47c5ee85cef1575a..e8636803ca4660d764e5ce597e4ddd37ba923ec4 100755 (executable)
@@ -679,7 +679,7 @@ void VISU_OpenGLPointSpriteMapper::DrawPoints(vtkPoints *p,
 
   vglUseProgramObjectARB( this->VertexProgram );
 
-  this->SetShaderVariable( "clamp",   this->PointSpriteClamp );
+  this->SetShaderVariable( "clamp_size", this->PointSpriteClamp );
 
   TVertex* aVertex = new TVertex[ this->TotalCells ];