[Question] Combining two materials at runtime

I’m trying to combine two materials at runtime. Basically, Have one plane mask another plane at runtime. For example, One plane is transparent and the other is black. When the first gets on top of the black it overrides it. How can I do that?