MayaFlux 0.2.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 268 of file PathGeneratorNode.cpp.

269{
270 m_current_color = color;
271 m_force_uniform_color = force_uniform;
272 m_vertex_data_dirty = true;
273 m_geometry_dirty = true;
274
276 for (auto& v : m_completed_draws)
277 v.color = color;
278
279 for (auto& v : m_draw_vertices)
280 v.color = color;
281 }
282}
bool m_vertex_data_dirty
Flag: vertex data or layout changed since last GPU upload.

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

Referenced by force_uniform_color().

+ Here is the caller graph for this function: