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 
...
}
复制代码

 

posted @   summernight  阅读(285)  评论(0)    收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示