initialize alpha component of color

This commit is contained in:
Erwin Coumans 2017-05-14 21:14:56 -07:00
parent 23b8579247
commit 11fa56513b

View File

@ -1179,11 +1179,11 @@ void OpenGLGuiHelper::autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWor
createCollisionShapeGraphicsObject(colObj->getCollisionShape());
int colorIndex = colObj->getBroadphaseHandle()->getUid() & 3;
btVector3 color;
btVector4 color;
color = sColors[colorIndex];
if (colObj->getCollisionShape()->getShapeType()==STATIC_PLANE_PROXYTYPE)
{
color.setValue(1,1,1);
color.setValue(1,1,1,1);
}
createCollisionObjectGraphicsObject(colObj,color);