TS版 CocosCreator2.x Shader Component
参考了JS版:https://github.com/colinsusie/creator_2_0_material_demo
https://forum.cocos.com/t/cocos-creator-2-x-shader/69098
git地址 https://github.com/daijialin/Shader2xTs
实现概述
1 shader_material 继承自引擎的Material类
2 shader_component 实现shader效果的基类
在原有的基础上添加了参数传递,每个效果单独一个脚本
在网上找了些实现效果 现在已经有15种了 已经在微信小游戏中试过能正常显示 欢迎大家继续添加或者修改 本人对shader也不是很懂只是看到论坛中很多需求TS版的就整理了一下分享出来