Jump to content

bloomFilter sharp rectangular cut in svg


Recommended Posts


Kinda new here as well, had the same issue the other day.

As I understand filters are applied according to a 'FilterArea' that fits the container by default.

You should set it with a rectangle the fits the texture plus padding.

container.filterArea = new PIXI.Rectangle(0, 0, someWidth, someHeight);

Just be careful with the positioning, looks like FilterArea does not automatically move with the container.

Little example here:


Link to comment
Share on other sites

ok, it worked, for future people(including me) here is a simple fix:

const bloomFltr = new PIXI.filters.BloomFilter();
const heart = new PIXI.Sprite(heartTexture);
heart.filters = [bloomFltr,blurFltr]
bloomFltr.blur =120;
bloomFltr.padding =5;

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...