mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-21 20:27:52 -05:00
feat: first draft of loading gltf models for t6
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
#include "Utils/FileUtils.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
namespace gltf
|
||||
{
|
||||
@ -18,6 +19,7 @@ namespace gltf
|
||||
constexpr auto GLTF_JSON_CHUNK_DATA_OFFSET = 20u;
|
||||
|
||||
constexpr auto GLTF_DATA_URI_PREFIX = "data:application/octet-stream;base64,";
|
||||
constexpr auto URI_PREFIX_LENGTH = std::char_traits<char>::length(GLTF_DATA_URI_PREFIX);
|
||||
|
||||
constexpr auto GLTF_ATTRIBUTE_POSITION = "POSITION";
|
||||
constexpr auto GLTF_ATTRIBUTE_NORMAL = "NORMAL";
|
||||
|
@ -258,6 +258,7 @@ namespace gltf
|
||||
public:
|
||||
std::optional<unsigned> POSITION;
|
||||
std::optional<unsigned> NORMAL;
|
||||
std::optional<unsigned> COLOR_0;
|
||||
std::optional<unsigned> TEXCOORD_0;
|
||||
std::optional<unsigned> JOINTS_0;
|
||||
std::optional<unsigned> WEIGHTS_0;
|
||||
|
Reference in New Issue
Block a user