Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
GltfNodeTransforms.h
1#pragma once
2
3#include <glm/mat4x4.hpp>
4#include <tiny_gltf.h>
5
6#include <vector>
7
9{
15 [[nodiscard]] glm::mat4 parseNodeMatrix( const tinygltf::Node & node );
16
26 [[nodiscard]] std::vector<glm::mat4> calculateNodeWorldTransforms( const tinygltf::Model & model );
27} // namespace Engine::Assets::Gltf
glm::mat4 parseNodeMatrix(const tinygltf::Node &node)
Converts a glTF node matrix or TRS fields into a local transform matrix.
std::vector< glm::mat4 > calculateNodeWorldTransforms(const tinygltf::Model &model)
Calculates world transforms for every glTF node.