How do i remove these Post Processing outlines from rendering through other meshes?

So no matter what i do, the Post Processing outlines render through other meshes.

Test_GraphicalIssue.rar (2.4 MB)

Notes:

The Text Bubble Message, has Disable Depth Test, so that it can draw above everything.
But the Post Processing outline still draws above it.

I made it so that the green mountains always draw below Red Cubes. Even if Red Cubes are below the Mountains. Thats intended, and hence why im using Custom Stencil in the green mountains material.

To remove the lines persisting above the Text message, the only thing so far that helped, was to change the Blendable Location.
That fixes it but then mountains lose its Post Processing Outline.

So it becomes a whackamole here. When you solve a problem, another appears.

Solution:

Just assign a Custom stencil to the mesh (comment bubble) and it wont draw the lines anymore.

Post processing, Blendable Location: Before Tonemapping:

1 Like