初始提交: UE5.3项目基础框架
This commit is contained in:
57
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumGltf/VertexAttributeSemantics.h
vendored
Normal file
57
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumGltf/VertexAttributeSemantics.h
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user