MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Nodes::MeshVertex Struct Reference

Vertex type for indexed triangle mesh primitives (TRIANGLE_LIST topology) More...

#include <VertexSpec.hpp>

+ Collaboration diagram for MayaFlux::Nodes::MeshVertex:

Public Attributes

glm::vec3 color = glm::vec3(1.0F)
 
glm::vec3 normal = glm::vec3(0.0F, 0.0F, 1.0F)
 
glm::vec3 position
 
glm::vec3 tangent = glm::vec3(1.0F, 0.0F, 0.0F)
 
glm::vec2 uv = glm::vec2(0.0F)
 
float weight = 0.0F
 

Detailed Description

Vertex type for indexed triangle mesh primitives (TRIANGLE_LIST topology)

Shares the universal 60-byte layout with PointVertex and LineVertex. The scalar field at offset 24 is interpreted as a per-vertex weight (displacement magnitude, blend factor, or any user-defined scalar). FieldOperator works identically on MeshVertex data: same stride, same offsets, same raw byte buffer approach.

Layout (60 bytes): offset 0 position vec3 (12) offset 12 color vec3 (12) offset 24 weight float (4) offset 28 uv vec2 (8) offset 36 normal vec3 (12) offset 48 tangent vec3 (12)

Intended for use with an external index buffer (uint32_t). GeometryWriterNode::set_vertices<MeshVertex>() populates vertex data. Index data is stored separately (see GeometryBuffer index support).

Definition at line 71 of file VertexSpec.hpp.


The documentation for this struct was generated from the following file: