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

◆ set_path_color()

void MayaFlux::Nodes::GpuSync::PathGeneratorNode::set_path_color ( const glm::vec3 &  color,
bool  force_uniform = true 
)

Set path color (applied to all generated vertices)

Parameters
colorRGB color
force_uniformIf true, ignores per-vertex color and uses this color for all vertices

Definition at line 341 of file PathGeneratorNode.cpp.

342{
343 m_current_color = color;
344 m_force_uniform_color = force_uniform;
345 m_attributes_dirty = true;
346 m_vertex_data_dirty = true;
347
349 for (auto& v : m_completed_draws)
350 v.color = color;
351
352 for (auto& v : m_draw_vertices)
353 v.color = color;
354 }
355}
bool m_vertex_data_dirty
Flag: vertex data or layout changed since last GPU upload.

References m_attributes_dirty, m_completed_draws, m_current_color, m_draw_vertices, m_force_uniform_color, and MayaFlux::Nodes::GpuSync::GeometryWriterNode::m_vertex_data_dirty.

Referenced by force_uniform_color().

+ Here is the caller graph for this function: