fix shadow render if offsetX is 0.0