Skip to content

Commit e8e35e5

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

File tree

1 file changed

+2
-2
lines changed
  • java/examples/Topics/Shaders/BlurFilter/data

1 file changed

+2
-2
lines changed

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)