mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
GRIM: EMI: Replace function with simple math operation
This commit is contained in:
parent
3788bf1e1c
commit
4d62b275e0
@ -248,7 +248,7 @@ void EMIModel::prepareForRender() {
|
||||
const Math::Matrix4 &bindPose = _skeleton->_joints[jointIndex]._absMatrix;
|
||||
|
||||
Math::Vector3d vert = _vertices[boneVert];
|
||||
bindPose.inverseTranslate(&vert);
|
||||
vert -= bindPose.getPosition();
|
||||
bindPose.inverseRotate(&vert);
|
||||
jointMatrix.transform(&vert, true);
|
||||
_drawVertices[boneVert] += vert * _boneInfos[i]._weight;
|
||||
|
Loading…
Reference in New Issue
Block a user