Skip to content

Commit

Permalink
Add demo for backdrop blur filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin committed Feb 22, 2024
1 parent 8cdb31d commit 383de2d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/src/DemoApplication.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default class DemoApplication extends PIXI.Application
height: this.initHeight,
autoStart: false,
preference,
useBackBuffer: true,
});
}

Expand Down
11 changes: 11 additions & 0 deletions examples/src/filters/backdropBlur.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default function ()
{
this.addFilter('BackdropBlurFilter', {
fishOnly: true,
oncreate(folder)
{
folder.add(this, 'blur', 0, 100);
folder.add(this, 'quality', 1, 10);
},
});
}
1 change: 1 addition & 0 deletions examples/src/filters/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export { default as adjustment } from './adjustment.mjs';
export { default as advancedBloom } from './advanced-bloom.mjs';
export { default as alpha } from './alpha.mjs';
export { default as ascii } from './ascii.mjs';
export { default as backdropBlur } from './backdropBlur.mjs';
export { default as bevel } from './bevel.mjs';
export { default as bloom } from './bloom.mjs';
export { default as blur } from './blur.mjs';
Expand Down

0 comments on commit 383de2d

Please sign in to comment.