文章分类 - cocoscreator
摘要:cocoscreator动态修改数据教程<pre> cc.Class({ extends: cc.Component, properties: { label: { default: null, type: cc.Label }, label1: { default: null, type: cc.
阅读全文
摘要:1 先做子精灵 wrapmode模式不一样的精灵动画 然后再做父精灵动画 准没错 ps:一旦创建了父精灵 wrapmode会自动给所有子精灵 wrapmode加上 这个时候 需要 给子精灵手动添加anim组件 创建个clip拖进去 刷新下就好 一般建议直接在父精灵设置 全部normal就好 不要在紫
阅读全文
摘要:先看个简单的代码 attribute 的变量名字不能该 都是绑定shader的 从底部传过来的 这句话的意思就是 设置顶点着色器 这个c就是获取图片中每个像素的颜色 最后赋值颜色 rbga 你懂的 最后讲个深入点的 可以发现上半是灰色的 因为uv控制了总而言之 就是设置颜色。。gl_FragColo
阅读全文
摘要:把shadertoy 搬到cocoscreaor的方法 // Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. // Note: Current format version is experiment, the format may be
阅读全文