I am attempting to create a material or pp material that will effectively blur the silhouette of a mesh. I need to be able to detect edges and then blur inward. I would use this mask as an alpha to blend between postprocessing0 and the mesh render itself.
I know that I can create an outline with a pp material and flag meshes I want to inherit the outline as “render custom depth.” But how would I then blur inwards?
This is fantastic. This is very much so what I was thinking. I will implement this asap. Thank you very much for helping me expedite this! I will let you know how it goes!
i guess the result of the last division on the right must be connected to the emissive color in the PP material right?it doesn’t seem to work in UE5 btw, anyone managed to make it work?
Thanks a lot for your answer, I’m currently having the same issue. Question - this node that you marked as “tweak to match aspect ratio”, is that a constant3vector node? I was following your node structure, and because of this particular nod I’m having errors. Thank you!
The aspect ratio is a vector 2, on the image it has the value of (1, 1.6). It should be matching the screen aspect ratio to make the blur steps even on both screen axes.
Hi ZoltanE thx for the material!I managed to make it work and it does look awesome indeed. Only problem is that when the PP material is enabled, it has noticeable impact on the whole scene (especially lights). I would expect it to only affect actors with Render CustomDepth Pass enabled, did I do something wrong or is this a drawback of this technique?