Skip to content

Commit

Permalink
fix: blur
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed Sep 11, 2023
1 parent 5c3cd4d commit daff1e3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -32972,7 +32972,7 @@ function drawBlur(gl, program, tex1, width, height) {
if (width >= height) {
gl.uniform2f(u_direction, max, 0);
} else {
gl.uniform2f(u_direction, max * ratio, 0);
gl.uniform2f(u_direction, max / ratio, 0);
}

gl.uniform1i(u_texture, 0);
Expand Down
2 changes: 1 addition & 1 deletion index.es.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32978,7 +32978,7 @@
if (width >= height) {
gl.uniform2f(u_direction, max, 0);
} else {
gl.uniform2f(u_direction, max * ratio, 0);
gl.uniform2f(u_direction, max / ratio, 0);
}

gl.uniform1i(u_texture, 0);
Expand Down
2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/gl/webgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ function drawBlur(gl, program, tex1, width, height) {
gl.uniform2f(u_direction, max, 0);
}
else {
gl.uniform2f(u_direction, max * ratio, 0);
gl.uniform2f(u_direction, max / ratio, 0);
}
gl.uniform1i(u_texture, 0);
gl.drawArrays(gl.TRIANGLES, 0, 6);
Expand Down

0 comments on commit daff1e3

Please sign in to comment.