there are multiple ways to do this.
the best i can think of right now, is to pass both textures to a shader and only use the color of main texture where the mask texture is black.
but i guess you are not familar with shaders … otherwise you won´t have asked, right ?
guess you like to do something like this:
[ATTACH=CONFIG]448[/ATTACH]