I am studying shaders to be able to create new few effects.
What I could understand so far that we have 2 possibilities of shaders: You can make a shader only for you texture or for everything.
The problem is that creating a shader for a texture I can only change the pixel color, and I would like to create an effect that is bigger than the size of the texture.
eg: Let’s say that I need to create a border of a texture (ignoring the alpha)
You know, you could skip the shader pass entirely on this. If all y ou’re doing is a solid outline colour, just change graphicsDevice.Clear(Color.Transparent) to graphicsDevice.Clear(someOutlineColour). I think that should work…
If I paint all the background with a color, when I draw a texture with transparent pixels it will get the background color.
The solid color border was only an example, the goal is to be able to use those pixels for shader processing (for Bloom, Outline, Shadow or whatever effect that we need to apply)