z-buffer tweaking