Render to texture to exclude objects for post processing

I have just begun programming in Unreal with blue prints and cpp. I want to add a sobel outline post effect but I can only find the option to apply it to a post process volume which changes the entire scene, inlcuding shadows and foliage. I was wonderinf if its possible to render the objects you want to be affected to a texture then do the post process material on that render target, so that the scene only contains the stuff I want at the point of the post process being applied.


Yeah I have noticed a post-process outline now affects the scene in UE5. IIRC it did not in UE4.

We are using the same exact post process highlight as in UE4.

Maybe there is a project setting that needs to be applied? :face_with_monocle:

How to Create Masks With the Custom Depth Buffer | Tips & Tricks | Unreal Engine - YouTube I found this to be helpful