Set custom render depth to true on blocked camera view

Hey Guys, quick question, i have a highlight material for my character that works in a post processing volume, but thats not the problem, what i want to know is how to set custom render depth to true when objects are in between the player character and the player camera. Any answers will be greatly appreciated. Thanks in advance.