mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
initialize alpha component of color
This commit is contained in:
parent
23b8579247
commit
11fa56513b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user