3

I wanted to make an Outline shader, but only achieved the following. Works perfectly exclusively on the sphere. And in Cuba, it hardly works at all. Who have to use the Shader Graph, please help! my outline tests

4
  • Feel free to try this solution. Commented Jul 20, 2018 at 20:47
  • This is just an attempt to recreate the Outline Shader. And I wanted to know, here, how all such to make this Shader! Commented Jul 21, 2018 at 5:01
  • @Draco18s I need for Shader Graph Commented Jul 21, 2018 at 5:03
  • I have no idea then. Because in order to get an even thickness around models, you need to have a geom method that creates new geometry as well as two render passes with a stencil mask. And I don't know if Shader Graph even supports either of those. Commented Jul 21, 2018 at 15:19

3 Answers 3

2

Old post, but I have found a very easy way to do a simple outline shader. This is in the newest version of Unity (Unity 2022.1.0b14.2951).

Here's the graph: Shader Graph

Here are the settings:

Shader Settings

And here are the results:

enter image description here

It starts to show its negative qualities when two outlined objects intersect, however.

Sign up to request clarification or add additional context in comments.

Comments

1

I tried to recreate your shader, do you have the correct shader type?

enter image description here

enter image description here enter image description here

2 Comments

but this is not the correct way to do this. the outline will not have the same thickness over the whole thing and the lines will be at places were it does not count as "outline"
That's the problem I meant, did you read the headline? This is just an attempt to recreate the Outline Shader. And I wanted to know, here, how all such to make this Shader!
1

the effect that you're creating there is going to put an emission on faces that are a certain angle. it does not work to create an outline shader in the shader editor. here is a youtube tutorial to create the type of effect that you're trying to achieve https://youtu.be/SMLbbi8oaO8 enter image description here

1 Comment

Well, can you make the outline lay down on the object when hidden behind some object, and not on the object behind which is hidden?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.