Don't calculate shadows if shadows are off. May fix ticket:3925