Environment rim lighting

It looks so good in this game, how did the devs set it up? is it a texture mask? a shader? a mesh outline? tell me your secrets.