Getting shadows in cycles nodes

I was following a tutorial that was executed in Arnold, and they have there a “Lambert node” which gives you lighting and shadow information on the objects.
you can see it used here at 10:00 https://www.youtube.com/watch?v=4zsR25y7UVA&t=10m0s
as I understand, it’s not possible to get this information in cycles (or eevee) without using post processing / baking.

  1. Am I right about it?
  2. How would you go in replicating the effect in this video? he is using the highlights and shadows to determine the amount of different texture blending.

In Cycles is not possible without very expensive tricks. But in Eevee is very simple: plug a diffuse node into a shader_to_rgb, and from this into a color ramp. :wink: