Almost Z-buffering.