Is it possible to add a rim lighting effect to a material?

I am a fan of Dota2. You want to add rim light effects to the material, you can learn the functions here. Hope to be useful to you.