mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 01:02:18 +02:00
Fixed weight comparison
This commit is contained in:
parent
088da60116
commit
20e673e364
1 changed files with 2 additions and 1 deletions
|
@ -1572,7 +1572,8 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
|||
glm::vec3 globalMeshScale = extractScale(globalTransforms[nodeIndex]);
|
||||
const glm::mat4 meshToJoint = glm::scale(glm::mat4(), globalMeshScale) * jointInverseBindTransforms[clusterIndex];
|
||||
|
||||
const float EXPANSION_WEIGHT_THRESHOLD = 0.25f;
|
||||
// TODO: The entire clustering is probably broken and detailed collision shapes fail to generate due to it.
|
||||
const uint16_t EXPANSION_WEIGHT_THRESHOLD = UINT16_MAX/4; // Equivalent of 0.25f?
|
||||
if (mesh.clusterWeights[j] >= EXPANSION_WEIGHT_THRESHOLD) {
|
||||
// TODO: fix transformed vertices being pushed back
|
||||
auto& vertex = mesh.vertices[i];
|
||||
|
|
Loading…
Reference in a new issue