开发者

How to erase foreground image to make the background visible using OpenGLES?

I'm learning iPhone development specifically OpenGL ES 2. I'm trying to achieve an effect as in steam draw. I have a background image a开发者_JAVA百科nd a foreground image. When I move the finger over the foreground image the corresponding pixels of the foreground image are erased and the background does get visible. Can someone point me in the right direction on how to implement this? Some guide lines?


You can use GL_STENSIL_TEST when drawing foreground to exclude fragments you choose(or your finger ;))

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜