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
最新推荐文章于 2020-12-29 17:29:29 发布
本文深入探讨了iOS平台下stencilbuffer在ES1.1与ES2.0版本中的可用性和限制,特别是针对MBX和SGX基设备的区别,以及如何通过FBO配置实现stencil功能。
957

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



