Masked lit outline material

You could overlap the same mesh, invert the normals and add a glow / emissive color to it.