Niagara - Spawn particles on static mesh surface based on mask texture

You can do that, just need to create Niagara Module Script for that.