mirror of
https://github.com/overte-org/overte.git
synced 2025-05-29 10:30:33 +02:00
MeshPartPayload: remove dead code
This commit is contained in:
parent
74633ca8c8
commit
635f58629a
1 changed files with 0 additions and 20 deletions
|
@ -520,26 +520,6 @@ void ModelMeshPartPayload::render(RenderArgs* args) const {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// render the part bounding box
|
|
||||||
#ifdef DEBUG_BOUNDING_PARTS
|
|
||||||
{
|
|
||||||
AABox partBounds = getPartBounds(_meshIndex, partIndex);
|
|
||||||
|
|
||||||
glm::vec4 cubeColor(1.0f, 1.0f, 0.0f, 1.0f);
|
|
||||||
if (isSkinned) {
|
|
||||||
cubeColor = glm::vec4(0.0f, 1.0f, 1.0f, 1.0f);
|
|
||||||
} else if (args->_viewFrustum->boxIntersectsFrustum(partBounds)) {
|
|
||||||
cubeColor = glm::vec4(1.0f, 0.0f, 1.0f, 1.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
Transform transform;
|
|
||||||
transform.setTranslation(partBounds.calcCenter());
|
|
||||||
transform.setScale(partBounds.getDimensions());
|
|
||||||
batch.setModelTransform(transform);
|
|
||||||
DependencyManager::get<GeometryCache>()->renderWireCube(batch, 1.0f, cubeColor);
|
|
||||||
}
|
|
||||||
#endif //def DEBUG_BOUNDING_PARTS
|
|
||||||
|
|
||||||
auto locations = args->_pipeline->locations;
|
auto locations = args->_pipeline->locations;
|
||||||
assert(locations);
|
assert(locations);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue