If shadows are disabled, don't bother calculating them.