Original Post
Hi, Just want to know how does EXT_depth_bounds_test work. A small example would be highgly appreciated. glDepthBoundsEXT (0.00 , 1.00 ); Will the above command clamp the znear and zfar planes to the given range ([0,1] in this case) OR it will enable testing of the depth value of the incoming fragment between the given range. I assumed the latter case and I implemented void display(void) { glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity (); glMultMatrixf (state->rot_matrix); glEnable(GL_EXT_depth_bounds_test); glDepthBoundsEXT ( 0.2 , 0.3 ) ; drawscene(); glDisable(GL_EXT_depth_bounds_test); glutSwapBuffers(); glutPostRedisplay(); } I was expecting the portion of the drawscene to be clipped, but it didnt happen. Thanks.