Stained Glass Window material

Opacity seems to be an either on or off switch. Try using the opacity mask instead. If that does not work try making shadow casting dynamic.