Merge branch 'release/0.7.0' into dev
This commit is contained in:
commit
7cd2edc0df
@ -1,5 +1,9 @@
|
|||||||
# ChangeLog
|
# ChangeLog
|
||||||
|
|
||||||
|
## 0.7.0 (2020-02-07)
|
||||||
|
|
||||||
|
- 加入高斯模糊V1版本(纯原理篇)
|
||||||
|
|
||||||
## 0.6.0 (2020-01-17)
|
## 0.6.0 (2020-01-17)
|
||||||
|
|
||||||
- 加入新的圆角裁剪特效 v2 ,支持任意宽高纹理圆角裁剪
|
- 加入新的圆角裁剪特效 v2 ,支持任意宽高纹理圆角裁剪
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Cocos Creator Shader Effect Demo
|
# Cocos Creator Shader Effect Demo
|
||||||
|
|
||||||
[![](https://img.shields.io/badge/Release-0.6.0-green.svg)](CHANGELOG.md)
|
[![](https://img.shields.io/badge/Release-0.7.0-green.svg)](CHANGELOG.md)
|
||||||
[![](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
|
[![](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)
|
[![](https://img.shields.io/badge/Support-Cocos%20Creator%20v2.2.1-orange.svg)](http://www.cocos.com/creator)
|
||||||
|
|
||||||
@ -20,6 +20,7 @@
|
|||||||
* [Cocos Creator Shader Effect 系列 - 5 - 马赛克/像素化特效](https://www.jianshu.com/p/40e72ab76afd)
|
* [Cocos Creator Shader Effect 系列 - 5 - 马赛克/像素化特效](https://www.jianshu.com/p/40e72ab76afd)
|
||||||
* [Cocos Creator Shader Effect 系列 - 6 - 内发光特效](https://www.jianshu.com/p/326b73f86ecc)
|
* [Cocos Creator Shader Effect 系列 - 6 - 内发光特效](https://www.jianshu.com/p/326b73f86ecc)
|
||||||
* [Cocos Creator Shader Effect 系列 - 7 - 点光/扫光特效](https://www.jianshu.com/p/8ff03b34b0bd)
|
* [Cocos Creator Shader Effect 系列 - 7 - 点光/扫光特效](https://www.jianshu.com/p/8ff03b34b0bd)
|
||||||
|
* [Cocos Creator Shader Effect 系列 - 8 - 高斯模糊](https://www.jianshu.com/p/9e42cbb1d4a8)
|
||||||
|
|
||||||
|
|
||||||
* 编写中...
|
* 编写中...
|
||||||
@ -75,6 +76,9 @@
|
|||||||
|
|
||||||
![](static/effects/2d-sprite-round-corner-crop-v2.gif)
|
![](static/effects/2d-sprite-round-corner-crop-v2.gif)
|
||||||
|
|
||||||
|
### 高斯模糊-V1([实现原理](https://www.jianshu.com/p/9e42cbb1d4a8))2020.02.07更新)
|
||||||
|
|
||||||
|
![](static/effects/2d-sprite-gaussian-blur-v1.png)
|
||||||
|
|
||||||
### 外发光(完善中...)
|
### 外发光(完善中...)
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ CCProgram fs %{
|
|||||||
const float size = floor(stDev * 6.0 + 1.0);
|
const float size = floor(stDev * 6.0 + 1.0);
|
||||||
const float halfSize = floor(size / 2.0);
|
const float halfSize = floor(size / 2.0);
|
||||||
|
|
||||||
// 步骤一:计算所有权重的和
|
// 步骤一:计算高斯矩阵上所有权重的和
|
||||||
|
|
||||||
// // v1:遍历所有点,每个点都计算权重
|
// // v1:遍历所有点,每个点都计算权重
|
||||||
// float totalWeight = 0.0;
|
// float totalWeight = 0.0;
|
||||||
|
BIN
static/effects/2d-sprite-gaussian-blur-v1.png
Normal file
BIN
static/effects/2d-sprite-gaussian-blur-v1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 225 KiB |
Loading…
Reference in New Issue
Block a user