Link to Demo & Source:
https://discussions.unity.com/t/unity...
Unity 4.2 introduces the long awaited access to the stencil buffer, enabling a wide range of effects. One of the most simple being to use a stencil as a mask to enable a portal effect as demonstrated in the above video.