It occurred to me that I could obtain the desired effect converting the height map to a layer mask, which interprets white as 100% opacity and black as 0%, so it would work without even the need to invert the colors. However, I realise that I am not even able to do that, which I am sure is possible. Could anyone help?