lerping speedtree material

Hello all,

I’d like to lerp a GameObject between two SpeedTree materials, which are basically the same, only with a change of colors within the shaders.

Ideally I’d like to use something like this

void Update () {
        float lerp = Mathf.Min(Time.time / duration, 1);
        _renderer.material.Lerp(startMaterial, finalMaterial, lerp);
}

I understood from several posts that for general materials I probably had to modify the shader code to interpolate properly.

The shader from SpeedTree materials is compiled and I don’t think it’s editable?!

What would you recommend me to do?
Thanks

there is some speedtree shader sources in the buildin shaders zip, check that one.

if you only want to lerp color, wouldnt just adjusting the color work?