MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_axis_palette()

void MayaFlux::Buffers::SDFMeshProcessor::set_axis_palette ( const glm::vec3 &  x,
const glm::vec3 &  y,
const glm::vec3 &  z 
)

Color each triangle by the dominant axis of its surface normal.

Parameters
xColor for surfaces facing along X.
yColor for surfaces facing along Y.
zColor for surfaces facing along Z.

Selection is a hard choice rather than a blend, so the surface resolves into flat regions that switch as the geometry turns. Three identical colors give a flat surface, which is what the default reproduces. Takes effect next cycle.

Definition at line 112 of file SDFMeshProcessor.cpp.

113{
114 m_palette = { x, y, z };
115 m_dirty = true;
116}
std::array< glm::vec3, 3 > m_palette

References m_dirty, and m_palette.