Adding depth to vertices.