【Unity】unity2017之后的shader实现的UGUI外描边方案,复用材质球保证能合批(修正了mask的问题)

上传者: zhenmu | 上传时间: 2021-09-02 10:10:29 | 文件大小: 23KB | 文件类型: RAR
基于Shader实现的UGUI描边解决方案,解决unity 自带outline 顶点数过多、overdraw过大问题。 且改进了一下实现, 用一个材质球绑定所有描边,保证文字描边能合批。 实例项目用的unity2018 具体实现代码文章在:https://blog.csdn.net/zhenmu/article/details/88821562 这次修正了 mask的问题 渐隐的问题。

文件下载

资源详情

[{"title":"( 27 个子文件 23KB ) 【Unity】unity2017之后的shader实现的UGUI外描边方案,复用材质球保证能合批(修正了mask的问题)","children":[{"title":"test2018_outline_fix_mask","children":[{"title":"Assets","children":[{"title":"OutlineMat.mat <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"OutlineEx.cs <span style='color:#111;'> 9.40KB </span>","children":null,"spread":false},{"title":"OutlineEx.shader <span style='color:#111;'> 5.30KB </span>","children":null,"spread":false},{"title":"OutlineMat.mat.meta <span style='color:#111;'> 188B </span>","children":null,"spread":false},{"title":"Scenes","children":[{"title":"SampleScene.unity.meta <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"SampleScene.unity <span style='color:#111;'> 22.55KB </span>","children":null,"spread":false}],"spread":true},{"title":"Scenes.meta <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"OutlineEx.shader.meta <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"OutlineEx.cs.meta <span style='color:#111;'> 243B </span>","children":null,"spread":false}],"spread":true},{"title":"ProjectSettings","children":[{"title":"PresetManager.asset <span style='color:#111;'> 824B </span>","children":null,"spread":false},{"title":"Physics2DSettings.asset <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"ProjectVersion.txt <span style='color:#111;'> 28B </span>","children":null,"spread":false},{"title":"GraphicsSettings.asset <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"TimeManager.asset <span style='color:#111;'> 206B </span>","children":null,"spread":false},{"title":"AudioManager.asset <span style='color:#111;'> 377B </span>","children":null,"spread":false},{"title":"EditorBuildSettings.asset <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"UnityConnectSettings.asset <span style='color:#111;'> 812B </span>","children":null,"spread":false},{"title":"QualitySettings.asset <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false},{"title":"VFXManager.asset <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false},{"title":"ClusterInputManager.asset <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"DynamicsManager.asset <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"TagManager.asset <span style='color:#111;'> 435B </span>","children":null,"spread":false},{"title":"InputManager.asset <span style='color:#111;'> 5.95KB </span>","children":null,"spread":false},{"title":"NavMeshAreas.asset <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"NetworkManager.asset <span style='color:#111;'> 159B </span>","children":null,"spread":false},{"title":"EditorSettings.asset <span style='color:#111;'> 643B </span>","children":null,"spread":false},{"title":"ProjectSettings.asset <span style='color:#111;'> 18.59KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • qq_25670983 :
    这个不同canvas下 不能合批啊 有啥解决办法吧
    2019-12-02

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明