How does the Bevel Node work on a technical level?

Hi everyone,

This is a pretty technical question, but how does the bevel node work? What allows it to detect edges and only apply the smoothed normals to the corners?

Related to that, how would I find the source code for the bevel node if I wanted to look at how they coded it? Normally, I just click edit source, but this method doesn’t work on nodes as far as I can tell. Any guidance on that would be greatly appreciated.


From Cycles Dev:

Add bevel shader, for raytrace based rounded edges:
Blender 2.8 release notes:

1 Like

Ah, thank you! This is pretty much exactly what I was looking for.