Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for a mask itself to have 'rounded corners'. #39

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

ArthurD
Copy link
Contributor

@ArthurD ArthurD commented Mar 17, 2023

Adds the functionality that was requested in issue #6.

Tested on macOS & appears to work fine. There's some weirdness around when it updates (due to image.materialForRendering vs image.material -- but that's an existing/Unity-side issue that's only tangentially related; nothing here makes it worse or changes that aspect in any way).

FWIW, based on my understanding of how Unity's masking works via the Stencil buffer, I did expect the change would work prior to trying/testing it. It works as I'd expect. :)

Tyvm for this lib btw -- it's been helpful!

…, so that a mask itself can be rounded (via the mask's source image).
@kirevdokimov kirevdokimov merged commit 9f538c7 into kirevdokimov:master Apr 4, 2023
@kirevdokimov
Copy link
Owner

Thank you @ArthurD for contribution!

kirevdokimov added a commit that referenced this pull request Apr 4, 2023
@Jepplen Jepplen mentioned this pull request Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants