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 ... }
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】凌霞软件回馈社区,携手博客园推出1Panel与Halo联合会员
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步