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.

Thanks!

From Cycles Dev:

Add bevel shader, for raytrace based rounded edges: https://developer.blender.org/rB26f39e6
Blender 2.8 release notes: https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Cycles

1 Like

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