thekayaker33 Posted December 7, 2021 Share Posted December 7, 2021 Hi, I think when i set a filter on a sprite, it runs every frame? What if I only need to run the filter one time for performance purposes? How do I run a filter only once and get an output from it? I have tried this, but the output that it returns is just null; var vfilter = new PIXI.filters.DotFilter(); var filtersystem = new PIXI.systems.FilterSystem(app.renderer); filtersystem.applyFilter(vfilter, nvGraphic, output); Quote Link to comment Share on other sites More sharing options...
Exca Posted December 7, 2021 Share Posted December 7, 2021 Create a renderTarget and render the filtered object into that and then create a sprite that uses that renderTarget as texture. Using a cacheAsBitmap=true might also work, haven't used it with filters so not 100% certain. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.