Skip to content

Commit

Permalink
adding filterParamter
Browse files Browse the repository at this point in the history
  • Loading branch information
perminder-17 committed Dec 11, 2024
1 parent d45c50f commit 64adf22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/image/filterRenderer2D.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ class FilterRenderer2D {
this._shader.setUniform('texelSize', texelSize);
this._shader.setUniform('canvasSize', [this.pInst.width, this.pInst.height]);
this._shader.setUniform('radius', Math.max(1, this.filterParameter));
this._shader.setUniform('filterParameter', this.filterParameter);

const identityMatrix = [1, 0, 0, 0,
0, 1, 0, 0,
Expand Down

0 comments on commit 64adf22

Please sign in to comment.