Initial test implementation of masks.  Currently has masking artifacts due to mip-mapping.  I plan to resolve this when I refactor textures to support animation.