Skip to content

Conversation

@derkork
Copy link
Contributor

@derkork derkork commented Oct 17, 2023

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

@Piralein Piralein added bug area:manual Issues and PRs related to the Manual/Tutorials section of the documentation labels Oct 17, 2023
| | **TEXTURE_PIXEL_SIZE** = :code:`vec2(1/64, 1/32)` |
+--------------------------------+----------------------------------------------------+
| inout vec2 **VERTEX** | Vertex, in image space. |
| inout vec2 **VERTEX** | Vertex, in canvas space. |
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@AThousandShips AThousandShips changed the title fix: vertex coordinates are in canvas space fix: vertex coordinates are in local space Oct 19, 2023
@AThousandShips
Copy link
Member

Please squash your commits into one, see here

@derkork
Copy link
Contributor Author

derkork commented Oct 19, 2023

Squashed. Thanks for bearing with me!

@mhilbrunner mhilbrunner merged commit 44884c2 into godotengine:master Oct 21, 2023
@mhilbrunner
Copy link
Member

Thanks! Merged.

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

Labels

area:manual Issues and PRs related to the Manual/Tutorials section of the documentation bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants