FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update blur.glsl · whyi/processing@2380889 · GitHub

Repository navigation

Commit 2380889

Browse files
committed
Update blur.glsl
made the blur spatially uniform (seemed to be a typo)
1 parent bed27ce commit 2380889

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • java/examples/Topics/Shaders/BlurFilter/data

‎java/examples/Topics/Shaders/BlurFilter/data/blur.glsl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void main(void) {
3636
vec4 col8 = texture2D(texture, tc8);
3737

3838
vec4 sum = (1.0 * col0 + 2.0 * col1 + 1.0 * col2 +
39-
2.0 * col3 + 4.0 * col4 + 2.0 * col4 +
40-
1.0 * col5 + 2.0 * col6 + 1.0 * col7) / 16.0;
39+
2.0 * col3 + 4.0 * col4 + 2.0 * col5 +
40+
1.0 * col6 + 2.0 * col7 + 1.0 * col8) / 16.0;
4141
gl_FragColor = vec4(sum.rgb, 1.0) * vertColor;
4242
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL