首页 > 代码库 > stencil in unity3d

stencil in unity3d

Pass {            Stencil {               Ref 1               Comp Always               Pass REPLACE             }                        AlphaTest Greater 0            Blend SrcAlpha OneMinusSrcAlpha             Color[_Color]            SetTexture[_MainTex] {                Combine texture            }        }                // render outline                Pass {                    Stencil {                Ref 1                //Comp Always                Comp NotEqual                           }                        Cull Off            ZWrite Off                        AlphaTest Greater 0.9            Blend SrcAlpha OneMinusSrcAlpha ...}

 

stencil in unity3d