Meta_VertexAttrib
Module: Metanodes / Definitions
A VertexAttrib node contains raw data describing a collection of vertices. More...
#include <meta_importables.hpp>
Public Types
| Type | Name |
|---|---|
| enum | IDX { Idx_Enabled, Idx_Size, Idx_Content } Property index. |
Detailed Description
struct Meta_VertexAttrib;
A VertexAttrib node contains raw data describing a collection of vertices.
The name of the node describes its usage:
pos- Positions, 3 floats per vertexnrm- Normals, 2 floats per vertextan- Tangents, 4 floats per vertex (xyz=tangent, w=handedness (+1 or -1)diffuse- Diffuse vertex colour, 4 floats per vertexambient- Ambient vertex colour, 4 floats per vertexemissive- Emissive vertex colour, 4 floats per vertextex0- Texture coordinates (sampler 0), 2 floats per vertextex1- Texture coordinates (sampler 1), 2 floats per vertextex2- Texture coordinates (sampler 2), 2 floats per vertextex3- Texture coordinates (sampler 3), 2 floats per vertex
The number of vertices specified in each sibling VertexAttrib should be the same (e.g. if there are 100 vertices in pos, there should be 100 vertices in any other nrm, tex0 etc).
Public Types Documentation
enum IDX
| Enumerator | Value | Description |
|---|---|---|
| Idx_Enabled | bool - When enabled, these vertices are available to the mesh | |
| Idx_Size | int - Number of floats per vertex (should be set according to the list of types above) | |
| Idx_Content | vector<float> - The vertex data (e.g. for positions: x0,y0,z0,x1,y1,z1,x2...etc) |
Property index.