OpenGL ES depth buffer android, can't get to work

后端 未结 3 577
一向
一向 2021-01-06 01:14

I\'m unable to get the depth buffer working correctly on Android OpenGL ES 2.0. Regardless of what I do, the objects are always render in the order provided and completely i

3条回答
  •  [愿得一人]
    2021-01-06 01:24

    Have you specified the buffer depth? This might be the solution to your problem.

    myGlSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
    

提交回复
热议问题