MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / get_node_world_transform

Function get_node_world_transform

libraries/lib-model-io/src/gltf-io.cpp:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119inline float4x4 get_node_world_transform(const cgltf_node * node)
120{
121 float matrix[16];
122 cgltf_node_transform_world(node, matrix);
123 return float4x4(
124 {matrix[0], matrix[1], matrix[2], matrix[3]},
125 {matrix[4], matrix[5], matrix[6], matrix[7]},
126 {matrix[8], matrix[9], matrix[10], matrix[11]},
127 {matrix[12], matrix[13], matrix[14], matrix[15]}
128 );
129}
130
131inline gltf_texture_info gltf_load_texture_info(const cgltf_data * data, const cgltf_texture * texture, const std::string & base_path)
132{

Callers 2

import_gltf_sceneMethod · 0.85

Calls 1

Tested by

no test coverage detected