-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: vertex coordinates are in local space #8258
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
Conversation
| | | **TEXTURE_PIXEL_SIZE** = :code:`vec2(1/64, 1/32)` | | ||
| +--------------------------------+----------------------------------------------------+ | ||
| | inout vec2 **VERTEX** | Vertex, in image space. | | ||
| | inout vec2 **VERTEX** | Vertex, in canvas space. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should say "local" space. Canvas space is relative to the screen. While the coordinates of the VERTEX are relative to the Node2D and use a pixel scale. The rest of this doc refers to that space as "local" space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I will update this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
Please squash your commits into one, see here |
|
Squashed. Thanks for bearing with me! |
|
Thanks! Merged. |
I couldn't for the life of me figure out what was meant with "image space", so I did some experimentation and figured out that the vertex coordinates are actually in "canvas space".