Tessellating based on depth