How to create Stencil buffer with texture (Image) in OpenGL-ES 2.0

后端 未结 2 2019
轮回少年
轮回少年 2021-01-05 02:59

Can I have Stencil prepared with a texture (Image) in OpenGL 2.0 So that some part of the Image will be transparent and as a result it will be transfered as is
to Sten

2条回答
  •  离开以前
    2021-01-05 03:43

    Finally I have managed to do it using conditional passing of colors using discard keyword in shader. I also used 2 textures in same shader and combined them accordingly.

    Thanks all.

提交回复
热议问题