Material emissive by thickness

I wanna find a way to enlighten any type of models based on its distance field (thcikness actually),or like an inversed subsurface effect.

I wonder is it possiable or not?