首页 > 编程语言 > 详细

stencil in unity3d

时间:2015-01-29 17:22:03      阅读:322      评论:0      收藏:0      [点我收藏+]
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

原文:http://www.cnblogs.com/lightlfyan/p/4260380.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!