The texture panners are placed before the function inputs so that won’t work obviously. All your material function does is a regular Lerp.
You would need to change your input types to Texture2D so you can pass in a texture object which is then sampled with the panning UVs in the material function.