vispy.visuals.shaders.program.
ModularProgram
Bases: vispy.gloo.program.Program
vispy.gloo.program.Program
Shader program using Function instances as basis for its shaders.
Automatically rebuilds program when functions have changed and uploads program variables.
build_if_needed
Reset shader source if necesssary.
draw
Draw the attribute arrays in the specified mode.
‘points’, ‘lines’, ‘line_strip’, ‘line_loop’, ‘lines_adjacency’, ‘line_strip_adjacency’, ‘triangles’, ‘triangle_strip’, or ‘triangle_fan’.
Array of indices to draw.
Check error after draw.
frag
geom
update_variables
vert