开发者

glStencilOp -- GL_INCR_WRAP GL_DECR_WRAP. stencil mask behaviour

开发者 https://www.devze.com 2023-03-06 03:43 出处:网络
OpenGL documentation for gl开发者_Go百科StencilOp isn\'t clear on what happens for increment and decrement operations in the presence of stencil masks.It seems to imply that the mask will be ignored f

OpenGL documentation for gl开发者_Go百科StencilOp isn't clear on what happens for increment and decrement operations in the presence of stencil masks. It seems to imply that the mask will be ignored for increment and decrement operation.

Can anyone confirm/refute that?

Thanks


The mask will not be ignored. Instead, the increment or decrement operation is performed as though there was no mask, but the only bits in the stencil buffer that will be set to the incremented value are those allowed by the mask.

0

精彩评论

暂无评论...
验证码 换一张
取 消