I would create 2 different shaders, one for the edges and one for the main faces. Seek the attached file. It's rough, but it gives you something to start with.