I have a 2d top-down map in a big sprite texture.
I want to make all of the map grayscale except the part that is in a field of view (I’m calculating FoV polygon every frame).
As far as I understand, it can be done with shaders, but I have no experience with shaders. I have started reading about them but they are so out of this world that I’m pretty confused on how to do what I need.
I saw this tutorial: Field of view visualisation (E03: stencil shader) - YouTube
but as far as I understand stencil buffer will not help with my task as it either renders stuff or it doesn’t. I will probably use the stencil solution for hiding important objects on the map, but player should see the map itself.
It is pretty clear how to make the whole object grayscale, but how to make only part of it grayscale?