I solved the problem, but now I have to try to solve the aliasing problem. If you have in mind a better and cleaner solution at the material blueprints code level let me know, I managed to make it work like this