now zbuffer is fully working.