How to avoid outline shader not override other stencil outline color?

Ultimate Kirby
Wed, 22 Oct 2025 21:56:53 +0000
Rendering

Hi, folks ! I am facing a problem with my outline shader.The shader support multiple color at once like in the image bellow.

You can see that the two color are completely rendered fine. But the problem start to appear when you take camera angle when two object with outline merge together. The object rendered behind of the front one start to cover the front one with it’s own outline color.

I can’t figure out the problem and I have no clue what to do to avoid this problem I had uploaded my blueprint here.Can this be solved?

And extra problem here is that sometime when the camera get closer to the front object the outline of the object behind start to change.

blueprintue.com

Outline Shader posted by anonymous | blueprintUE | PasteBin For Unreal Engine

No description provided

Here is my material Instance settings.

6 posts - 2 participants