Pixel Depth for Non-transparent Materials

Custom depth translucent material could be a solution, but i’m afraid the performance is really bad.