update z-buffer triangles