这篇文章,将记录OpenGL中的Buffer的巧妙使用。
参考:
https://docs.unity3d.com/Manual/SL-Stencil.html
https://alastaira.wordpress.com/2014/12/27/using-the-stencil-buffer-in-unity-free/
ColorMask的介绍:https://docs.unity3d.com/Manual/SL-Pass.html
pass的控制:http://answers.unity3d.com/questions/545190/additional-pass-in-surface-shader-enabledisable-pa.html