OpenGL ES 2.0 : texture masking with alpha

Explain to me please, how can I mask texture as it is shown in the attached file.

Thanks in advance.