#24: Provided workarounds for most shadow performance issues and now allow customization of all shadow parameters.