Showing the changes to interface/src/avatar/SkeletonModel.cpp (1 of 13 files). Show all
Unified · Split
| @@ -349,17 +349,15 @@ void SkeletonModel::renderBoundingCollisionShapes(gpu::Batch& batch, float scale · 348 unmodified lines | ||
| 349 | 349 | // draw a blue sphere at the capsule top point |
| 350 | 350 | glm::vec3 topPoint = _translation + getRotation() * (scale * (_boundingCapsuleLocalOffset + (0.5f * _boundingCapsuleHeight) * Vectors::UNIT_Y)); |
| 351 | 351 | |
| 352 | − geometryCache->renderSolidSphereInstance(batch, | |
| 353 | − Transform().setTranslation(topPoint).postScale(scale * _boundingCapsuleRadius), | |
| 354 | − glm::vec4(0.6f, 0.6f, 0.8f, alpha)); | |
| 352 | + batch.setModelTransform(Transform().setTranslation(topPoint).postScale(scale * _boundingCapsuleRadius)); | |
| 353 | + geometryCache->renderSolidSphereInstance(batch, glm::vec4(0.6f, 0.6f, 0.8f, alpha)); | |
| 355 | 354 | |
| 356 | 355 | // draw a yellow sphere at the capsule bottom point |
| 357 | 356 | glm::vec3 bottomPoint = topPoint - glm::vec3(0.0f, scale * _boundingCapsuleHeight, 0.0f); |
| 358 | 357 | glm::vec3 axis = topPoint - bottomPoint; |
| 359 | 358 | |
| 360 | − geometryCache->renderSolidSphereInstance(batch, | |
| 361 | − Transform().setTranslation(bottomPoint).postScale(scale * _boundingCapsuleRadius), | |
| 362 | − glm::vec4(0.8f, 0.8f, 0.6f, alpha)); | |
| 359 | + batch.setModelTransform(Transform().setTranslation(bottomPoint).postScale(scale * _boundingCapsuleRadius)); | |
| 360 | + geometryCache->renderSolidSphereInstance(batch, glm::vec4(0.8f, 0.8f, 0.6f, alpha)); | |
| 363 | 361 | |
| 364 | 362 | // draw a green cylinder between the two points |
| 365 | 363 | glm::vec3 origin(0.0f); |