Jump to content

Rectangle mask


Recommended Posts


Any opinions of the most performant way to do a simple rectangle mask on a Group?

Currently I'm using group.mask, it's ok, but I've read that masks are slow and they flush the webgl batch.

The children of the Group will be animated, so need to keep this in mind.

Would you think drawing the Group to a RenderTexture and calling renderXY every frame would be faster?

Or drawing the Group to BitmapData?

Actually I'm still unsure what the differences are between RenderTexture and BitmapData? 

You can draw DisplayObjects to them both, and they can both be used as a texture...?

Any help appreciated.


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...