Re-write GLMask so that is is independent from GLVolume
Currently the GLMask
class inherits from GLVolume
, so mask overlays are rendered with the volume rendering code. But masks are a lot simpler to draw than volumes, and the way that you render masks (by using a texture border) is a bit hacky.
You should get rid of this hackiness by writing custom shader programs for rendering mask overlays.