Changed glm:: types to Math::, calling Math::Utils::decompose
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user