Add default specular when there is not specular map. Add example for adjusting specular coefficient.

This commit is contained in:
yunfeibai
2017-05-07 21:09:08 -07:00
parent 67392b85d5
commit e363e12ea4
5 changed files with 47 additions and 4 deletions

View File

@@ -1208,13 +1208,17 @@ int b3GetNumJoints(b3PhysicsClientHandle physClient, int bodyId)
return cl->getNumJoints(bodyId);
}
int b3GetJointInfo(b3PhysicsClientHandle physClient, int bodyIndex, int jointIndex, struct b3JointInfo* info)
{
PhysicsClient* cl = (PhysicsClient* ) physClient;
return cl->getJointInfo(bodyIndex, jointIndex, *info);
}
int b3GetDynamicInfo(b3PhysicsClientHandle physClient, int bodyUniqueId, int linkIndex, struct b3DynamicInfo* info)
{
return 0;
}
b3SharedMemoryCommandHandle b3InitResetDynamicInfo(b3PhysicsClientHandle physClient)
{
PhysicsClient* cl = (PhysicsClient* ) physClient;