1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00

Clean up images. Fix minor mistakes

This commit is contained in:
Meow J
2016-07-05 19:15:32 +08:00
parent 26e8742fad
commit 3227b3df11
102 changed files with 13 additions and 9 deletions

View File

@@ -392,7 +392,9 @@ void main()
创建模糊效果的kernel定义如下
$$
\(\begin{bmatrix} 1 & 2 & 1 \\ 2 & 4 & 2 \\ 1 & 2 & 1 \end{bmatrix} / 16\)
$$
由于所有数值加起来的总和为16,简单返回结合起来的采样颜色是非常亮的,所以我们必须将kernel的每个值除以16.最终的kernel数组会是这样的: