How do I create free hand mask on Image Like below using glsl Shader In android?
问题 I'm new to OpenGL and GLSL Programming. Recently I need to do freehand masking on an image like below Image. How could I achieve this using Fragment Shader? Currently, I am trying this with below fragment shader but Nothing Change on Image. precision mediump float; varying vec2 v_TexCoordinate; varying vec2 v_TexCoordinate2; uniform sampler2D u_Texture; uniform sampler2D u_Texture2; uniform bool u_alpha_test_enable; void main() { float mask = texture2D(u_Texture, v_TexCoordinate).a; // if (u