mirror of
https://github.com/JulianGro/overte.git
synced 2025-06-04 21:41:08 +02:00
redo unsafe optimization
This commit is contained in:
parent
46c5f96113
commit
50f92cb934
1 changed files with 1 additions and 7 deletions
|
@ -60,13 +60,7 @@ void SoftAttachmentModel::updateClusterMatrices() {
|
||||||
} else {
|
} else {
|
||||||
jointMatrix = _rig->getJointTransform(cluster.jointIndex);
|
jointMatrix = _rig->getJointTransform(cluster.jointIndex);
|
||||||
}
|
}
|
||||||
#if (GLM_ARCH & GLM_ARCH_SSE2) && !(defined Q_OS_MAC)
|
glm_mat4u_mul(jointMatrix, cluster.inverseBindMatrix, state.clusterMatrices[j]);
|
||||||
glm::mat4 out, inverseBindMatrix = cluster.inverseBindMatrix;
|
|
||||||
glm_mat4_mul((glm_vec4*)&jointMatrix, (glm_vec4*)&inverseBindMatrix, (glm_vec4*)&out);
|
|
||||||
state.clusterMatrices[j] = out;
|
|
||||||
#else
|
|
||||||
state.clusterMatrices[j] = jointMatrix * cluster.inverseBindMatrix;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Once computed the cluster matrices, update the buffer(s)
|
// Once computed the cluster matrices, update the buffer(s)
|
||||||
|
|
Loading…
Reference in a new issue