i made 2 spheres. second sphere is made by translating the first, 3 units on x-axis and 2 units on -z aixs. this is the code
if depth buffer enable
after first sphere is drawn, depth buffer has z-axis value of first sphere. while drawing second sphere glDepthFunc(GL_LEQUAL); checks stored depth buffer value to the second sphere's value, if it is less than it draws tht pixel other wise not.
this is all wht i understand about depth buffer working. is this right? plz correct if m wrong