Cel/Toon Shading Material Help UE4

I made some changes regarding the material and now it seems to work fine,

By the way used the command r.TonemapperFilm = 0 to adjust colors.

Now I have another problem and that is that the character has a mesh for the shadows of the hair and on the face.


At first I thought that it would be solved by lowering the opacity and it could look good, but it wasn’t. I was investigating and I discovered that the creators of the character used a technique called “Tone Control Shader” that serves to project according to the shape of the mesh or the texture of the mask. I really don’t know how to achieve that effect, any support is welcome :smiley: