Is it possible to create a shader that treats the edges of an object differently?

They use the “ambient o” and “curvature” map for this kind of effect calculation… the curvature map is usually created from a normal map but can be also created in xnormal…