3#include "pixelbullet/assets/skinned_morph_mesh.h"
15namespace skinned_morph_mesh_internal
19 std::vector<SkinnedMorphMesh::Vertex> vertices;
20 std::vector<uint32_t> indices;
21 std::vector<SkinnedMorphMesh::Target> targets;
22 std::vector<glm::mat4> inverse_bind_matrices;
23 SkinnedMorphMesh::Bounds bounds;
24 bool has_bounds =
false;
27void ResetLoadData(
LoadData& data)
noexcept;
28void IncludeBoundsPosition(
LoadData& data,
const glm::vec3& position)
noexcept;
29void GenerateTangents(std::vector<SkinnedMorphMesh::Vertex>& vertices,
const std::vector<uint32_t>& indices,
30 const std::filesystem::path& resolved_path, uint32_t texcoord_index = 0u);
33[[nodiscard]] std::optional<SkinnedMorphMesh::Bounds> LoadSkinnedMorphMeshBounds(
const Filesystem& filesystem,
36 std::string* error_message =
nullptr);
Definition filesystem.h:16
Definition virtual_path.h:10
Definition skinned_morph_mesh_internal.h:18