I am creating a radar scan effect with a post process material but I am having an issue. I need certain objects to be highlighted though walls which is already done but due to the way the effect works I gave it a limited range for gameplay purposes. the issue is that if one of the objects that is to be highlighted is not within the radars range but a wall that is in front of it is it will still show up on the players screen despite being out of range. I have a custom depth stencil for the object that is to be highlighted. The radar effect as a whole is only visible if it is inside of a custom mask placed in world space. all I need to know is if there is a way to get the highlight color to only show up if the object is in the radars range.