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

◆ append_line_segment()

void MayaFlux::Nodes::GpuSync::PathGeneratorNode::append_line_segment ( const LineVertex &  v0,
const LineVertex &  v1,
std::vector< LineVertex > &  output 
)
private

Definition at line 214 of file PathGeneratorNode.cpp.

218{
219 glm::vec3 color0 = m_force_uniform_color ? m_current_color : v0.color;
220 glm::vec3 color1 = m_force_uniform_color ? m_current_color : v1.color;
221
222 float thick0 = m_force_uniform_thickness ? m_current_thickness : v0.thickness;
223 float thick1 = m_force_uniform_thickness ? m_current_thickness : v1.thickness;
224
225 output.push_back({ .position = v0.position, .color = color0, .thickness = thick0 });
226 output.push_back({ .position = v1.position, .color = color1, .thickness = thick1 });
227}

References MayaFlux::Kakshya::LineVertex::color, m_current_color, m_current_thickness, m_force_uniform_color, m_force_uniform_thickness, MayaFlux::Kakshya::LineVertex::position, and MayaFlux::Kakshya::LineVertex::thickness.

Referenced by complete(), and draw_to().

+ Here is the caller graph for this function: