#24: Added a shadowLayer for more efficient shadow generation.