Near clipping for software occlusion culling