vispy.visuals.filters.picking module#

class vispy.visuals.filters.picking.PickingFilter(id_=None)#

Bases: Filter

Filter used to color visuals by a picking ID.

Note that the ID color uses the alpha channel, so this may not be used with blending enabled.

FRAG_SHADER = '\n        void picking_filter() {\n            if( $enabled == 0 )\n                return;\n            if( gl_FragColor.a == 0.0 )\n                discard;\n            gl_FragColor = $id_color;\n        }\n    '#
property color#

The RGBA color that will be drawn to the framebuffer for visuals that use this filter.

property enabled#
property id#