Skip to content

Commit

Permalink
fix: fix the old fil and predator filter vanishing over time
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost91- committed Apr 23, 2022
1 parent eb36641 commit 3abd496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/filterEffects/filters/FXOldFilmFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class FXOldFilmFilter extends PIXI.filters.OldFilmFilter {
}

step() {
this.seed++;
this.seed = Math.random();
}

static get default() {
Expand Down
2 changes: 1 addition & 1 deletion src/filterEffects/filters/FXPredatorFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class FXPredatorFilter extends PIXI.filters.CRTFilter {
}

step() {
this.seed += 1;
this.seed = Math.random();
const frequency = 1.0 / this.options.period;
this.time = canvas.app.ticker.lastTime / frequency;
}
Expand Down

0 comments on commit 3abd496

Please sign in to comment.