I need Select Highlight effect in shader

What do I need? I tried making a shader using Rim Light, but I didn’t get the effect I wanted — I ended up with something like this (image 2).
What I actually need is an effect like in (image 1).

Specifically, when you select a mesh in the viewport, its edges get highlighted in yellow — I want to recreate a shader similar to that.

What kind of logic does this work on? If anyone knows, please help.
Thanks in advance.

It’s a post process effect.

You can do it yourself using a tutorial like

or you can just get an asset pack like

( I haven’t tried the tuut, but I do use the asset, which is good )

(post deleted by author)

I’ve looked at these variants — they’re done using post-process. But I need this to be inside the shader itself, and I want to use it as a mask — meaning I need to isolate (cut out) the highlighted parts of the cloud.

1 Like

Ah, excuses. I assumed when you said shader, that’s where you thought it was. My bad.

I see stuff using WPO, but that will also give lines in front of the object.

The editor outline is done using PP, as far as I know.