Projected Shadow fix
With Permission from Jeff Faust.
// AFX CODE BLOCK (bug-fix) <<
// For ShapeBase objects this causes the shader to fade along with the
// object and also prevents a rectangular shadow artifact from occuring
// once the visibility is zero.