Skip to content

Conversation

@frank-weindel
Copy link
Contributor

@frank-weindel frank-weindel commented Oct 25, 2023

The clipping area is now scaled appropriately according to the scale properties.

Clipping is also now disabled when a clipping node is rotated (Lightning 2 behavior).

Fixes #54

Screen Shot 2023-10-25 at 2 39 36 PM

The clipping area is now scaled appropriately according to the `scale` properties.
@wouterlucas
Copy link
Contributor

What's the rationale behind disabling clipping when rotating a node?

@frank-weindel
Copy link
Contributor Author

What's the rationale behind disabling clipping when rotating a node?

Same rationale that Lightning 2 employed. The WebGL scissor operation only works with a axis aligned rectangles. Clipping for rotated rectangles will be achievable with RTT.

@frank-weindel frank-weindel merged commit 2964bd6 into main Oct 26, 2023
@wouterlucas
Copy link
Contributor

What's the rationale behind disabling clipping when rotating a node?

Same rationale that Lightning 2 employed. The WebGL scissor operation only works with a axis aligned rectangles. Clipping for rotated rectangles will be achievable with RTT.

ahh! makes sense, thanks for explaining 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

Clipping and scale together are not compatible

5 participants