Matte/Mask 3d Object , so they cutoff/block objects behind them while themselves are invisible

is it to be done via shader?

Found it :)

http://www.unifycommunity.com/wiki/index.php?title=DepthMask