Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Assets::Gltf Namespace Reference

Functions

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.

Function Documentation

◆ calculateNodeWorldTransforms()

std::vector< glm::mat4 > Engine::Assets::Gltf::calculateNodeWorldTransforms ( const tinygltf::Model & model)
nodiscard

Calculates world transforms for every glTF node.

Traversal starts at the default scene roots, falls back to all scene roots when no default exists, and treats disconnected nodes as identity-parent roots.

Parameters
modelSource glTF model.
Returns
World transform indexed by source node index.

◆ parseNodeMatrix()

glm::mat4 Engine::Assets::Gltf::parseNodeMatrix ( const tinygltf::Node & node)
nodiscard

Converts a glTF node matrix or TRS fields into a local transform matrix.

Parameters
nodeSource glTF node.
Returns
Node transform in glTF coordinates.