Radium Engine  1.5.20
Loading...
Searching...
No Matches
StandardAttribNames.hpp
1#pragma once
2
3#include <Core/RaCore.hpp>
4
5namespace Ra {
6namespace Core {
7namespace Geometry {
8
11enum MeshAttrib : uint {
12 VERTEX_POSITION = 0,
13 VERTEX_NORMAL,
14 VERTEX_TANGENT,
15 VERTEX_BITANGENT,
16 VERTEX_TEXCOORD,
17 VERTEX_COLOR,
18 VERTEX_WEIGHTS,
19 VERTEX_WEIGHT_IDX,
20};
21
23inline const std::string& getAttribName( MeshAttrib index ) {
24 static const std::string g_attribName[] = { "in_position",
25 "in_normal",
26 "in_tangent",
27 "in_bitangent",
28 "in_texcoord",
29 "in_color",
30 "in_weight",
31 "in_weight_idx" };
32 return g_attribName[index];
33}
34
35} // namespace Geometry
36} // namespace Core
37} // namespace Ra
@ Geometry
"Geometry" render objects are those loaded using Radium::IO and generated by GeometrySystem
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3