How to create an alpha texture? (+ my shader throws errors?) Blur/Glow effect


I am looking to reproduce the glow effect from nvidia tutorial (cannot post the url here), if I understand well, we convert the first image to an “alpha texture” (black and white), and we blur this new texture.

How is it possible to create this alpha texture?

(Edit: the shader errors have been solved)