Skip to content

Commit

Permalink
fix(filter): pixelate behaves differently under webgl, and should be …
Browse files Browse the repository at this point in the history
…squares rather than image scale (#10081)
  • Loading branch information
xushengfeng authored Aug 21, 2024
1 parent 19e20e6 commit 9e7e96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters/shaders/pixelate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const fragmentSource = `
varying vec2 vTexCoord;
void main() {
float blockW = uBlocksize * uStepW;
float blockH = uBlocksize * uStepW;
float blockH = uBlocksize * uStepH;
int posX = int(vTexCoord.x / blockW);
int posY = int(vTexCoord.y / blockH);
float fposX = float(posX);
Expand Down

0 comments on commit 9e7e96e

Please sign in to comment.