Files
BXSSP_Andriod/Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumGltf/VertexAttributeSemantics.h

58 lines
1.3 KiB
C
Raw Normal View History

2025-10-14 11:14:54 +08:00
#pragma once
#include <array>
#include <string>
namespace CesiumGltf {
/**
* @brief The standard glTF vertex attribute semantics from the specification
* plus additional vertex attribute semantics from extensions.
*/
struct VertexAttributeSemantics {
/**
* @brief Unitless XYZ vertex positions.
*/
static const std::string POSITION;
/**
* @brief Normalized XYZ vertex normals.
*/
static const std::string NORMAL;
/**
* @brief XYZW vertex tangents where the XYZ portion is normalized, and the W
* component is a sign value (-1 or +1) indicating handedness of the tangent
* basis.
*/
static const std::string TANGENT;
/**
* @brief ST texture coordinates
*/
static const std::array<std::string, 8> TEXCOORD_n;
/**
* @brief RGB or RGBA vertex color linear multiplier.
*/
static const std::array<std::string, 8> COLOR_n;
/**
* @brief The indices of the joints from the corresponding skin.joints array
* that affect the vertex.
*/
static const std::array<std::string, 8> JOINTS_n;
/**
* @brief The weights indicating how strongly the joint influences the vertex.
*/
static const std::array<std::string, 8> WEIGHTS_n;
/**
* @brief Feature IDs used by `EXT_mesh_features`.
*/
static const std::array<std::string, 8> FEATURE_ID_n;
};
} // namespace CesiumGltf