Added remaining code to mask canvas. Added shaders for mask canvas.