i have got two images's RGB and their zbuffer values with glReadPixel.now i want to compose them together by comparision of zbuffer values. if i do it pixel by pixel, i'm afraid it will cost a lot time. i also want to reach 20 frames per second. who can give some suggestion on it? thanks



