I am pretty new to OpenGL, and I still find some of the options confusing. My goal is to use a black & white image as a mask for any other image, i.e. I only want my image to display through the white parts of my mask image. It’s not very clear to me whether I should use blending, stencils, etc.
Any help would be appreciated.
I have implemented the following solution (C# + OpenTK)
// render the mask
// render the image (which will be clipped to the masks white region)