The basics how you create a material function
Notice: This video can also be found on YouTube (I'm MetalGameStudios/fighter5347 from the Epic Games Forum)