Added z-buffer algorith with triangle rasterization