开发者

glStencilOp -- GL_INCR_WRAP GL_DECR_WRAP. stencil mask behaviour

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜