Changed glm:: types to Math::, calling Math::Utils::decompose

This commit is contained in:
Vladyslav Baranovskyi
2024-06-06 22:35:21 +03:00
parent 453fa467b0
commit 458f51889c

View File

@@ -30,13 +30,13 @@ namespace OpenVulkano::Math
Pose(const Math::Matrix4<T> &matrix)
{
glm::vec3 scale;
glm::quat rotation;
glm::vec3 translation;
glm::vec3 skew;
glm::vec4 perspective;
Math::Vector3_SIMD<T> scale;
Math::Quaternion<T> rotation;
Math::Vector3_SIMD<T> translation;
Math::Vector3_SIMD<T> skew;
Math::Vector4_SIMD<T> perspective;
bool decomposed = glm::decompose((glm::mat4)matrix, scale, rotation, translation, skew, perspective);
bool decomposed = Math::Utils::decompose(matrix, scale, rotation, translation, skew, perspective);
if(decomposed)
{
m_orientation = rotation;