I want to have an object which is greyed out (grayscale) when it is inside a specific mesh. For now, I have followed some videos and used the stencil command in shader to make it invisible inside (or outside) the mesh but this is not what I quite want.
How can I make it so the object will be seen as it is when inside a specific mesh renderer and have a grayscale effect when outside it? Is it possible to do that using stencil on Unity shaders?