Author:大掌教
是的,你没有看错,是最好的,没有之一!
- 新增封面和BGM,特别适合在晚上夜深人静的时候研究 shader,根本停不下来
- 新增常用Shader特效,无脑傻瓜式挂到节点就可使用
- 其他有趣的玩具,玩通宵没问题
我将自定义材质和渲染组件做了封装,可以参考也可以自己改
如果要自定义shader,只需要按照GLSL写片段shader即可,然后加入到 ShaderFSH中,枚举类型加入名称
some shaders for cocos creator
Author:大掌教
是的,你没有看错,是最好的,没有之一!
我将自定义材质和渲染组件做了封装,可以参考也可以自己改
如果要自定义shader,只需要按照GLSL写片段shader即可,然后加入到 ShaderFSH中,枚举类型加入名称
Uncaught TypeError: cc.GLProgram is not a constructor
Uncaught TypeError: cc.director.setDisplayStats is not a function
我在项目里使用了替换贴图的animation,同时使用了流光特效,实际上跑出来的流光效果是不连续的,流光闪的特别快,如果不使用animation就是正常的。
如果用了animation,需要怎么解决?
就几个场景能正常打开,其余打开场景直接报错,也不能跳转场景
用Cocos Creator打开项目后报以下错误,为什么呢?
load script [/Users/sunbvert/Downloads/ShaderDemos-master/temp/quick-scripts/assets/Script/shader/ShaderMaterial.js] failed : TypeError: Object prototype may only be an Object or null: undefined
at setPrototypeOf (<anonymous>)
at extendStatics (/Users/sunbvert/Downloads/ShaderDemos-master/temp/quick-scripts/assets/Script/shader/ShaderMaterial.js:11:16)
at __extends (/Users/sunbvert/Downloads/ShaderDemos-master/temp/quick-scripts/assets/Script/shader/ShaderMaterial.js:14:9)
at /Users/sunbvert/Downloads/ShaderDemos-master/temp/quick-scripts/assets/Script/shader/ShaderMaterial.js:23:5
at __define (/Users/sunbvert/Downloads/ShaderDemos-master/temp/quick-scripts/assets/Script/shader/ShaderMaterial.js:95:2)
at /Users/sunbvert/Downloads/ShaderDemos-master/temp/quick-scripts/assets/Script/shader/ShaderMaterial.js:101:13
at Object.<anonymous> (/Users/sunbvert/Downloads/ShaderDemos-master/temp/quick-scripts/assets/Script/shader/ShaderMaterial.js:108:11)
at Object.<anonymous> (/Users/sunbvert/Downloads/ShaderDemos-master/temp/quick-scripts/assets/Script/shader/ShaderMaterial.js:111:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
感觉这种需求也比较常用
高斯模糊卡成一条狗
希望能出一个学习文档,介绍一下目录和各个文件的作用,以及一些上手的学习路径,另外2.0以上版本好像还是跑步起来,但首页都已经介绍2.0.10的特性了
模拟器上什么都没有, 浏览器上看到一个灰色的框, 控制台一直在报错
Uncaught Error: cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.