How to create a FBO with stencil buffer in OpenGL ES 2.0?

前端 未结 2 1369
面向向阳花
面向向阳花 2020-12-31 10:30

I need stencil buffer on 3GS to render planar shadow, and polygon offset won\'t work prefect, still has z-fighting problem. So I use stencil buffer to make the shadow correc

2条回答
  •  余生分开走
    2020-12-31 11:24

    Just a note, if you are using GLKView, it is as simple as

    view.drawableStencilFormat = GLKViewDrawableStencilFormat8;

    where view is: GLKView*

提交回复
热议问题