Both ES1.1 and ES2.0 support stencil operations.
However the availability of a stencil buffer is renderer-dependent. On iPhone OS platforms:
* MBX based devices do not support stencil
* SGX based devices (and the iPhone simulator, in OS 3.x) support stencil in both ES1.1 and ES2.0
Specifically, the ability to use stencil is controlled by the FBO configurations you are allowed to create (because EAGL is entirely FBO-centric.) So if you are able to create a renderbuffer in STENCIL8 or DEPTH24_STENCIL8 formats and get a complete FBO with it, stencil works. These capabilities are advertised in the extension string by
OES_stencil8 and
OES_packed_depth_stencil .
iOS stencil buffer
最新推荐文章于 2023-08-28 18:10:11 发布
本文详细探讨了iOS平台下stencilbuffer技术在ES1.1和ES2.0版本中的支持情况,包括不同设备(如MBX和SGX)的差异,并解释了如何通过FBO配置实现stencil功能。
957

被折叠的 条评论
为什么被折叠?



