Skip to content

Commit

Permalink
AttributeSemantics -> VertexAttributeSemantics
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Oct 3, 2024
1 parent 82fb7e8 commit e781a9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
namespace CesiumGltf {

/**
* @brief The standard glTF attribute semantics from the specification.
* @brief The standard glTF vertex attribute semantics from the specification.
*/
struct AttributeSemantics {
struct VertexAttributeSemantics {
/**
* @brief Unitless XYZ vertex positions.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
#include <CesiumGltf/AttributeSemantics.h>
#include <CesiumGltf/VertexAttributeSemantics.h>

namespace CesiumGltf {

/**
* @brief Unitless XYZ vertex positions.
*/
const std::string AttributeSemantics::POSITION = "POSITION";
const std::string VertexAttributeSemantics::POSITION = "POSITION";

/**
* @brief Normalized XYZ vertex normals.
*/
const std::string AttributeSemantics::NORMAL = "NORMAL";
const std::string VertexAttributeSemantics::NORMAL = "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.
*/
const std::string AttributeSemantics::TANGENT = "TANGENT";
const std::string VertexAttributeSemantics::TANGENT = "TANGENT";

/**
* @brief ST texture coordinates
*/
const std::array<std::string, 8> AttributeSemantics::TEXCOORD_n = {
const std::array<std::string, 8> VertexAttributeSemantics::TEXCOORD_n = {
"TEXCOORD_0",
"TEXCOORD_1",
"TEXCOORD_2",
Expand All @@ -35,7 +35,7 @@ const std::array<std::string, 8> AttributeSemantics::TEXCOORD_n = {
/**
* @brief RGB or RGBA vertex color linear multiplier.
*/
const std::array<std::string, 8> AttributeSemantics::COLOR_n = {
const std::array<std::string, 8> VertexAttributeSemantics::COLOR_n = {
"COLOR_0",
"COLOR_1",
"COLOR_2",
Expand All @@ -49,7 +49,7 @@ const std::array<std::string, 8> AttributeSemantics::COLOR_n = {
* @brief The indices of the joints from the corresponding skin.joints array
* that affect the vertex.
*/
const std::array<std::string, 8> AttributeSemantics::JOINTS_n = {
const std::array<std::string, 8> VertexAttributeSemantics::JOINTS_n = {
"JOINTS_0",
"JOINTS_1",
"JOINTS_2",
Expand All @@ -62,7 +62,7 @@ const std::array<std::string, 8> AttributeSemantics::JOINTS_n = {
/**
* @brief The weights indicating how strongly the joint influences the vertex.
*/
const std::array<std::string, 8> AttributeSemantics::WEIGHTS_n = {
const std::array<std::string, 8> VertexAttributeSemantics::WEIGHTS_n = {
"WEIGHTS_0",
"WEIGHTS_1",
"WEIGHTS_2",
Expand Down

0 comments on commit e781a9c

Please sign in to comment.