Fixed depth buffer algorithm.