Intersection Material using Shader Graph in Unity

preview_player
Показать описание
This is a tutorial on creating an intersection shader using Shader Graph in Unity 2019 alpha which uses the depth scene node

This material is part of the URP Material Pack Vol 2:

Checkout my assets for more Tuts!
------------------------------------------------------------------------------------------

Popular Links

Shader Graph Materials (all render pipelines):

Vector Field Maker:

------------------------------------------------------------------------------------------

Free Stuff

Procedural Spaceships, rock, snow, buildings and more via Blendity:

------------------------------------------------------------------------------------------

Games and Demos

------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

For some reason the whole volume fills instead of the edge. I'm using the latest shadergraph

ZacharyAghaizu
Автор

Hello, Brackeys just realeased a video very similar to this one, maybe too similar, you might want to check it out.
It is : FORCE FIELD in Unity - SHADER GRAPH


I hope he asked for your permission before doing that because you are not credited in his video or it's description.


Great tutorial by the way !

arckantox
Автор

Appreciate it, used this effect (plus some extra stuff) to create some nice edge detection on a water shader

radiocage
Автор

Really clear. Personally I would love it if you explained the mathematics just a little more in depth instead of just saying what you're doing. But other than that this gives more than enough information to be able to do your own thing with it!

ThShnizz
Автор

As you guys see, the calculation in this tutorial is not 100% same as Brackeys,
i prefer this calculation since it's more robust, i got same result in sceneview AND gameview
bottom line : if you wanna do forcefield, use this tutorial, thanks AE Tuts for this!

spikebor
Автор

Great video, but how would one go about making an intersecting material on two semi transparent materials?

DeZiio
Автор

THANK YOU SO MUCH!!!
Finally got a better tutorial about intersection~

chinyonglim
Автор

Thanks for the awesome tutorial! You made my day :)

piakrensel
Автор

Do you have a solution for how to make intersection effects for materials that are not transparent? Ie a sea foam affect at water edge for a water material that is opaque with a texture on it?

Miketulli
Автор

After following a lot of tutorials including this one, I'm pulling out my hair. I need to get this working on HDRP and nothing I find is recent enough to be relevant with 2019.3 or is only in URP. There must be a solution?

Evmoius
Автор

Thanks to explain this effect with the graph tool but the intersection part is touched on too quickly. Even in the official documentation, we can't "guess" that the alpha value of the vertex screen position contains its depth.

Автор

Really good tutorial, didn't enjoy the result so much in a while! thanks!

nandodixtorsion
Автор

Still works with Unity 2019.3.7f1 URP 7.1.8, awesome tutorial!

bayernmaik
Автор

Finally dude :D thnx for your tutorial. ♥

extonsthelock
Автор

Hi tanks, nice tutorial, is posible to add to this shader an effect like hit reaction on hit points?

newberynovoa
Автор

Hi. The intersection shows with opaque objects but is ignored by objects that are transparent. Any suggestions please ?

edmandeadman
Автор

hello please why do we multiply the depth buffer by the camera far plane?

smoovlo
Автор

Is there a way to make the entire part of the mesh that is intersecting light up, instead of only the outline?

tvguideondemand
Автор

thank you so much sharing these kind of tutorials!

PascalAchermann
Автор

Hey man, love your tutorials. I'm playing with this one and can't seem to get the scene depth node to behave properly. I'm using 2019.3, URP (depth texture enabled) and can't seem to generate any edge detection. What am i missing?

JoshPearce
visit shbcf.ru