| 117 | } |
| 118 | |
| 119 | inline 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 | |
| 131 | inline gltf_texture_info gltf_load_texture_info(const cgltf_data * data, const cgltf_texture * texture, const std::string & base_path) |
| 132 | { |
no test coverage detected