Added shadow support for depth mask and enhanced user interface.