URP Outline Shader - Unity Shader Graph (Tutorial)

preview_player
Показать описание
In this video I show how to create an inverted hull shader for model outlines using shader graph in Unity 3D for URP.

#gamedev #unity #unity3d #shadergraph #unitytutorial #unitytutorialforbeginners #unitytutorials
Рекомендации по теме
Комментарии
Автор

Finally a tutorial on how to do hull outlines in shader graph. I've been searching for this for so long. Currently, I am using a hull outline shader that was made out of pure HLSL code, and because I don't know much about HLSL I couldn't expand on it to add other things. Finally, I can now do this in the shader graph. Thank you so much, man!

rambii.
Автор

Clear instructions, no dillydallying, great video! Thanks!

tyb.c.
Автор

Thank you very much for the video! It helped me a ton!

Boysle
Автор

Dude, best outline shader out there thank you !

VidyaStudios
Автор

10/10, great tutorial, great shader!

_dimitrisbr
Автор

thanks, really appreciate this tutorial 🙏🙏

agitti
Автор

For simple geometry with hard edges you can calculate the offset direction instead of using the Normal Vectors directly.

(Position(Space:World) - Object Position).Normalize

That will keep the edges of a cube together. It will however not work on more complex shapes since the offset direction will be from the objects pivot point. But a cube or a dodecahedron would be fine.

PatrikBergsten
Автор

Great tutorial! This seems to be working for spheres, but for other 3d shapes it is misbehaving for me. If I try this with a cube, or any other shape with edges, the edges don't survive the inflation process. The outlining faces are all disconnected from one another. Do you have any idea what I might need to fix?

Edit - oh, I need to just finish the video. You point this out yourself.

thesuitablecommand
Автор

it happens because they way light is calculated. simple version of it would be dot(normal, lightdir). because a normal is used rounding them essentially calculates light as if it is a rounded shape, making it look strange.

noosetime
Автор

Could you do a tutorial of an Outline Shader by sampling the Depth and Normal maps to have both internal and external?

Im trying to learn how the URP works to achieve something like that

Lodred
Автор

Hi, help me please. Why material color in shader can be pink?

Pumba_
Автор

how do you mix this with a toon shader?

lucutes
Автор

It's not working on me, after deal with shader graph the object that I assigned with materials graph doesn't show the outline shader. Anyone can help me?

biazwilosojati
Автор

Does it work for Unity 2020 aswell? Or just newer versions?

Hinkel
Автор

Incredible, by chance you don't have a toon?

Krhey-