cesium-native  0.41.0
VertexAttributeSemantics.h
1 #pragma once
2 
3 #include <array>
4 #include <string>
5 
6 namespace CesiumGltf {
7 
15  static const std::string POSITION;
16 
20  static const std::string NORMAL;
21 
27  static const std::string TANGENT;
28 
32  static const std::array<std::string, 8> TEXCOORD_n;
33 
37  static const std::array<std::string, 8> COLOR_n;
38 
43  static const std::array<std::string, 8> JOINTS_n;
44 
48  static const std::array<std::string, 8> WEIGHTS_n;
49 };
50 
51 } // namespace CesiumGltf
Classes for working with glTF models.
The standard glTF vertex attribute semantics from the specification.
static const std::array< std::string, 8 > COLOR_n
RGB or RGBA vertex color linear multiplier.
static const std::string TANGENT
XYZW vertex tangents where the XYZ portion is normalized, and the W component is a sign value (-1 or ...
static const std::string POSITION
Unitless XYZ vertex positions.
static const std::array< std::string, 8 > JOINTS_n
The indices of the joints from the corresponding skin.joints array that affect the vertex.
static const std::array< std::string, 8 > TEXCOORD_n
ST texture coordinates.
static const std::array< std::string, 8 > WEIGHTS_n
The weights indicating how strongly the joint influences the vertex.
static const std::string NORMAL
Normalized XYZ vertex normals.