i have a character in a sprite renderer, and when i walk behind terrain that is made up of a mesh, the terrain obstructs vision to my character.
How do I create a mask that culls parts of geometry that are inbetween my character and the camera?
Obviously i dont want to erase all geometry, only the small area occupied by my char
I would probably try to write a shader for the terrain and pass in the player screen position so you know what part to fade out. Not something I have done myself though.
This may also be helpful if you just want to render the player as a silhouette instead: Example: How to create a custom rendering effect using the Render Objects Renderer Feature | Universal RP | 10.4.0
ye the silhoette is not enough for me I would like a bigger area, if possible with feathering on the edges