I am trying to isolate some sprites and then process all of these with a shader (https://github.com/Kosmonaut3d/BloomFilter-for-Monogame-and-XNA)
Specifically what I want to do is put several fake lights represented by a sprite, and then process only these sprites with the shader.
I think the fastest way is to create a mask, but I really don’t have much idea how to do it.
Here is an example:
Now I understand a little more how shaders work. With this function I have been able to generate the mask, now I just need to figure out how to generate an image from that function and then process it with the other shader without having to exit the shader