How to achieve in ShaderGraph

I was wondering if anyone could help me achieve a similiar result for shadows in ShaderGraph as you see in the picture.

I can get something similiar with a vertex shader and a directional light but I am not getting the deepening of shadows you see at the edges like in the picture. I am pretty new to Shader Graph so thought I would ask if this is something it can help with.

It looks like the shading is done with a gradient that gets pushed to the edge as the angle deepens.

Can anyone give some advice on how to achieve the effect shown in the Adobe photo?

Hi!
Do you absolutely need this effect to be done in a shader?

If not, you can simply activate Screen-Space Ambient Occlusion in your renderer settings!

Select your Universal Render Pipeline Asset (you can find it in Edit > Project Settings > Quality > Render Pipeline Asset.
If you open your render pipeline asset, at the top of the inspector, under “Rendering,” you’ll find a list of Renderers.
(I know the names are confusing…)
The first item on that list is the Renderer you need (probably called “URP-Balanced-Renderer,” or something like that)

Open the renderer asset and scroll down till you see the “Add Renderer Feature” button > Add a Screen Space Ambient Occlusion feature.

It might take a bit of tinkering of the SSAO parameters until you get the proper look, but it’s a pretty flexible feature.

If, however, you do need this effect done in a shader, well… lemme know, we can figure this out :smile: