Shader2xTs icon indicating copy to clipboard operation
Shader2xTs copied to clipboard

CocosCreator2.x Shader Component TS

Shader2xTs

ver_2_0_x cocos版本2.0.8 ver_2_1_2 cocos版本2.1.2

TS版 CocosCreator2.x Shader Component 参考了JS版:https://github.com/colinsusie/creator_2_0_material_demo

实现概述 1 shader_material 继承自引擎的Material类 2 shader_component 实现shader效果的基类

在原有的基础上添加了参数传递,每个效果单独一个脚本

参数传递 参数传递

在网上找了些实现效果 现在已经有15种了 已经在微信小游戏中试过能正常显示 欢迎大家继续添加或者修改 本人对shader也不是很懂只是看到论坛中很多需求TS版的就整理了一下分享出来

参数传递 参数传递 参数传递 参数传递