|
Unravel Engine C++ Reference
|
#include "mesh_importer.h"#include "bimg/bimg.h"#include "bimg/decode.h"#include "bimg/encode.h"#include "../asset_extensions.h"#include "../asset_writer.h"#include <graphics/graphics.h>#include <logging/logging.h>#include <math/math.h>#include <string_utils/utils.h>#include <assimp/DefaultLogger.hpp>#include <assimp/GltfMaterial.h>#include <assimp/IOStream.hpp>#include <assimp/IOSystem.hpp>#include <assimp/Importer.hpp>#include <assimp/LogStream.hpp>#include <assimp/ProgressHandler.hpp>#include <assimp/material.h>#include <assimp/postprocess.h>#include <assimp/scene.h>#include <array>#include <bx/allocator.h>#include <bx/file.h>#include <graphics/utils/bgfx_utils.h>#include <algorithm>#include <cmath>#include <filesystem/filesystem.h>#include <functional>#include <optional>#include <numeric>#include <queue>#include <string_view>#include <tuple>#include <unordered_set>#include <unordered_map>#include <poolstl/poolstl.hpp>Go to the source code of this file.
Namespaces | |
| namespace | unravel |
| namespace | unravel::importer |
| namespace | unravel::importer::pixel_transforms |
| Pixel transformation functions for different texture formats. | |
Macros | |
| #define | POOLSTL_STD_SUPPLEMENT 1 |
Functions | |
| void | unravel::importer::mesh_importer_init () |
| auto | unravel::importer::load_mesh_data_from_file (asset_manager &am, const fs::path &path, const mesh_importer_meta &import_meta, mesh::load_data &load_data, std::vector< animation_clip > &animations, std::vector< imported_material > &materials, std::vector< imported_texture > &textures) -> bool |
| #define POOLSTL_STD_SUPPLEMENT 1 |
Definition at line 41 of file mesh_importer.cpp.
| bool bake_base_color {true} |
When true, KHR pair bake rewrites diffuse into reconstructed base color.
Definition at line 2618 of file mesh_importer.cpp.
| std::string base_color_relative |
Diffuse mutated to base color and saved to base_color_relative.
Definition at line 1768 of file mesh_importer.cpp.
| texture_catalog* catalog {} |
Definition at line 2676 of file mesh_importer.cpp.
| imported_texture desc {} |
Definition at line 2612 of file mesh_importer.cpp.
| float diffuse_a {1.0f} |
Definition at line 69 of file mesh_importer.cpp.
| float diffuse_b {1.0f} |
Definition at line 68 of file mesh_importer.cpp.
| bool diffuse_converted {false} |
Definition at line 1767 of file mesh_importer.cpp.
| float diffuse_g {1.0f} |
Definition at line 67 of file mesh_importer.cpp.
| float diffuse_r {1.0f} |
Definition at line 66 of file mesh_importer.cpp.
| const fs::path* filename {} |
Definition at line 2672 of file mesh_importer.cpp.
| float glossiness {1.0f} |
Definition at line 73 of file mesh_importer.cpp.
| texture_job_store* job_store {} |
Definition at line 2675 of file mesh_importer.cpp.
| std::string mr_relative |
Relative path of the converted base color file (empty if not produced).
Definition at line 1769 of file mesh_importer.cpp.
| std::string output_base_color_relative |
Definition at line 2615 of file mesh_importer.cpp.
| const fs::path* output_dir {} |
Definition at line 2673 of file mesh_importer.cpp.
| std::string output_mr_relative |
Definition at line 2616 of file mesh_importer.cpp.
| std::vector<size_t> parent_ |
Definition at line 2886 of file mesh_importer.cpp.
| phase_t phase {phase_t::bind} |
Definition at line 2671 of file mesh_importer.cpp.
| const aiScene* scene {} |
Definition at line 2674 of file mesh_importer.cpp.
| spec_gloss_factors_t spec_gloss_factors {} |
Definition at line 2614 of file mesh_importer.cpp.
| float specular_b {1.0f} |
Definition at line 72 of file mesh_importer.cpp.
| imported_texture specular_desc {} |
Definition at line 2613 of file mesh_importer.cpp.
| float specular_g {1.0f} |
Definition at line 71 of file mesh_importer.cpp.
| float specular_r {1.0f} |
Definition at line 70 of file mesh_importer.cpp.
| texture_job_type type {} |
Definition at line 2611 of file mesh_importer.cpp.