mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-22 05:59:55 +08:00
20 lines
334 B
C++
20 lines
334 B
C++
#define GLM_ENABLE_EXPERIMENTAL
|
|
#include <glm/gtx/matrix_decompose.hpp>
|
|
|
|
int main()
|
|
{
|
|
int Error(0);
|
|
|
|
glm::mat4 Matrix(1);
|
|
|
|
glm::vec3 Scale;
|
|
glm::quat Orientation;
|
|
glm::vec3 Translation;
|
|
glm::vec3 Skew(1);
|
|
glm::vec4 Perspective(1);
|
|
|
|
glm::decompose(Matrix, Scale, Orientation, Translation, Skew, Perspective);
|
|
|
|
return Error;
|
|
}
|