-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor CurveEdit to use consistent world/view transforms
Currently, `CurveEdit` uses a couple of different ways to ensure that points and lines are drawn in the right space. This makes the code harder to understand and maintain. This PR makes the curve be drawn in view coordinates by transforming every point from world/curve-space into view-space. By drawing in view-space, we can keep enable anti-aliasing and use a single way to transform coordinates from the two different spaces.
- Loading branch information
Showing
2 changed files
with
54 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters