I am trying to solve this little puzzle with JOGL:
I have two textures. One is a mask, and the other is a normal flat texture. They are to be combined.
The mask is grayscale. A white pixel means the flat texture should be all visible at that pixel, black means leave the background as it is (transparent). Anything in-between should be semi-transparent.
It would normally make sense to use one texture with an alpha channel, but in this case it is not possible as the flat texture is to be tiled, while the mask is to cover the entire surface. (I need lower resolution for the mask than for the texture)
I know I need to use multitexturing somehow, but I have not figured it out. ???
Please help if you can…