How to render Blocked object ? [with pic]

I want to make some object rendered partialy when blocked by some object, i little know it’s about masking, but how to do it in unity3d

18235-blocked.png

Make sure that the shader attached to the model has ZTest Always, which will ensure it is always rendered whatever the value in the depth buffer (i.e. even if there’s something in front of it) - see Unity - Manual: ShaderLab: commands for more info.

edit: Didn’t notice you wanted the object to appear differently when obscured. If so, add separate shader passes for ZTest GEqual (when not obscured) and ZTest Less (when obscured behind something)