diff --git a/src/Graphic3d/Graphic3d_ArrayOfPrimitives.lxx b/src/Graphic3d/Graphic3d_ArrayOfPrimitives.lxx index 54af290516..4661b9bd99 100644 --- a/src/Graphic3d/Graphic3d_ArrayOfPrimitives.lxx +++ b/src/Graphic3d/Graphic3d_ArrayOfPrimitives.lxx @@ -175,7 +175,7 @@ inline void Graphic3d_ArrayOfPrimitives::SetVertexColor (const Standard_Integer { Graphic3d_Vec4ub aColor (Standard_Byte(theR * 255.0), Standard_Byte(theG * 255.0), - Standard_Byte(theB * 255.0), 0); + Standard_Byte(theB * 255.0), 255); SetVertexColor (theIndex, *reinterpret_cast(&aColor)); } myAttribs->NbElements = Max (theIndex, myAttribs->NbElements); diff --git a/tests/v3d/point_cloud/sphere b/tests/v3d/point_cloud/sphere index d99d07f14e..70dd27a1e3 100644 --- a/tests/v3d/point_cloud/sphere +++ b/tests/v3d/point_cloud/sphere @@ -8,7 +8,6 @@ mkface s ss incmesh s 0.01 # draw sphere -vcaps -ffp 1 vinit View1 vclear vsetdispmode 1