Combine depth buffering and draw events with this weird trick