MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::SpatialAttribute Struct Reference

One named, scoped channel of already-typed values. More...

#include <SpatialCache.hpp>

Collaboration diagram for MayaFlux::IO::SpatialAttribute:

Public Attributes

std::string name
SpatialScope scope
Kakshya::DataVariant values

Detailed Description

One named, scoped channel of already-typed values.

values holds one of Kakshya::DataVariant's float/glm::vec2/glm::vec3/ glm::vec4/uint32_t vectors, sized per SpatialScope against the sample it is attached to (1 for Constant, curve count for Uniform, point/vertex count for Varying). Any other DataVariant alternative is rejected.

A vec3 named exactly "color" or "normal" is declared through Alembic's dedicated color/normal GeomParam types instead of a plain vector one, so an importer recognizes it as such rather than an arbitrary direction. A vec4 "color" is written as an RGBA color. Every other vec4 is a float GeomParam with array extent 4, and every other name stays generic. MayaFlux's own vertex fields already use these names for these roles.

Definition at line 46 of file SpatialCache.hpp.


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