Unity Standard Shader with Custom Clipping Planes
2026 note
I’m in the process of migrating posts from my old blog into this new system.
Rather than rewriting everything, I’m keeping the original structure and tone where possible, and adding light context where it helps.
For a project of mine, I wanted to have custom clipping planes for objects, so that if an object is intersection with another, it would hide any part after the intersection.
It looks like this:


I decided to extend the Standard shader provided by Unity3D to achieve this effect.