Apply a shader to multiple 2D sprites

I want to apply a single shader pass to a layer of multiple sprites, so that the sprites can use each other’s information and blend together in interesting ways. The simplest case would be one background image and one player image moving around in front of it. What is the best way for me to do this?

Thanks for any advice!

The solution that I found was to apply a shader to the camera with a script! That way I can pass in information about the character specifically, and the shader can access all the visible sprites and fragments on the screen, giving a more unified effect than simply applying the same material to multiple sprites.

Just create a Material and use the same material for all the sprites.