First of all, no this isnt the question on how you alpha-tween between colors, but quite close to that.
Three seperate meshes clipped to another, each one has its own material. These three materials should fade into another, like an gradient between three colors.
Now I know of the Gradient Class, I thought of using it paired with an shader with an seperate alpha-mask, which would be an simple texture generated via setpixel, however this would require the meshes to overlap, which I cant let happen because of the mechanics required for the game.
Another thought would be lerping the materials by calculating an 0~1 value by the player position and the length of the player and then using material.lerp with t being the value calculated.
I would like to ask if anyone has another suggestion for this, perhaps there is a way to have an “real” smoothed out material change?