Photoshop multiply

How like as photoshop can multiply black and white texture to RGB texture?

when you do it in photoshop its give 0 %opacity to white area s and 100 & opacity to black areas.

please someone reply.

thanks .

until now I find out you can do it with max and min nodes but I think it doesn’t work on override RGB values.