Implementing object picking using the depth buffer