How to "cut" proportion of mesh?

I made a script that makes flat surface. What I next need is a method of not rendering specific area of the mesh determined by collision box or something similar. Is this possible?

I’ll demonstrate what I need below:

Sounds like you want to use the DepthMask shader