2020-01-01 02:33:02 +00:00
|
|
|
|
# Cocos Creator Shader Effect Demo
|
|
|
|
|
|
|
|
|
|
[![](https://img.shields.io/badge/Release-0.1.0-green.svg)](CHANGELOG.md)
|
|
|
|
|
[![](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
|
|
|
|
|
[![](https://img.shields.io/badge/Support-Cocos%20Creator%20v2.2.1-orange.svg)](http://www.cocos.com/creator)
|
|
|
|
|
|
2020-01-01 03:14:38 +00:00
|
|
|
|
## 一、项目说明
|
2020-01-01 02:33:02 +00:00
|
|
|
|
|
2020-01-01 03:14:38 +00:00
|
|
|
|
1. 此项目为我在学习过程中的一些分享和实现,因此项目名字以 **`Demo`** 为后缀。
|
|
|
|
|
2. 项目重点在于 **「渔」**,不在于 **「鱼」** 。
|
|
|
|
|
3. 如果你有意将此Demo中的效果加入到你的项目中,**请认真评估是否适合你的项目使用!**
|
|
|
|
|
|
|
|
|
|
那么现在,我们先来轻松地看下有哪些特效效果吧~
|
|
|
|
|
|
|
|
|
|
## 二、特效预览
|
2020-01-01 02:33:02 +00:00
|
|
|
|
|
2020-01-01 03:02:15 +00:00
|
|
|
|
### 1. 内发光([实现原理及使用说明]())
|
2020-01-01 02:33:02 +00:00
|
|
|
|
|
2020-01-01 03:02:15 +00:00
|
|
|
|
![](static/effects/2d-sprite-glow-inner.gif)
|
2020-01-01 02:33:02 +00:00
|
|
|
|
|
|
|
|
|
## 支持一下作者吧
|
|
|
|
|
|
2020-01-01 03:14:38 +00:00
|
|
|
|
如果此项目对你学习和理解Shader有帮助,不妨支持一下我吧~
|
|
|
|
|
|
2020-01-01 02:33:02 +00:00
|
|
|
|
![](./static/pay.png)
|
|
|
|
|
|
|
|
|
|
## LICENSE
|
|
|
|
|
|
|
|
|
|
MIT License
|
|
|
|
|
|
2020-01-01 03:07:52 +00:00
|
|
|
|
Copyright (c) 2020 Zhitao Cai
|
2020-01-01 02:33:02 +00:00
|
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
|
copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
|
SOFTWARE.
|