Download https://www.artstation.com/a/30776283 Substance Designer nodes to perform histogram equalisation and histogram specification (matching)