How can I make a simple hardsurface shader that works like marmoset toolbag 2?

https://docs.unrealengine.com/latest/INT/Engine/Rendering/LightingAndShadows/AmbientCubemap/index.html