[Foliage] Variation of foliage's material instance

I have a tree mesh and want to use a single foliage type for this tree, which is simple. I’ve been looking through the forums and across other sites and am struggling to find help with using a single foliage type but having the tree vary which material instance it uses when placed.

I am using two material instances and simply want to mass spam trees and have it vary between the specific dark brown or ashier color. Please help me find a solution. Sorry if I missed obvious information where this could already be found.

I realize you can use speedtree variation to get similar colors to the base color, but again I’d like to specifically have it swap between only two. I also realize that I can use two different foliage types, one for each tree and its material instance, but the problem I found is that then when I spam the trees densely (as I intend to do) the separate foliages will clip inside each other. Thanks for any responses!

You can use per-instance random or instance world position to drive a pseudo random variations in material.