且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在模板,OpenGL ES 3.0中使用深度纹理

更新时间:2023-11-09 18:17:46

模板值是您要渲染到的帧缓冲区的属性.如果要在FBO0中使用模板遮罩,则需要在FBO0中请求模板(并在渲染到FBO0时填充遮罩等).

The stencil value is a property of the framebuffer you are rendering in to. If you want to use a stencil mask in FBO0 then you need to request a stencil in FBO0 (and populate the mask, etc, while rendering to FBO0).