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

Fix tile polygon grid not covering whole tile #92171

Merged
merged 1 commit into from
May 21, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented May 20, 2024

The grid for drawing tile polygons did not take tile size into account; it always assumed it's 1x1.

Before:
image
After:
image
Not sure why the color looks different though.

@KoBeWi KoBeWi added this to the 4.3 milestone May 20, 2024
@KoBeWi KoBeWi requested a review from groud May 20, 2024 18:16
Copy link
Member

@groud groud left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@akien-mga akien-mga merged commit 9e9fb16 into godotengine:master May 21, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the gridder_grid branch May 21, 2024 09:28
@KoBeWi
Copy link
Member Author

KoBeWi commented Jun 2, 2024

Apparently it's still broken if texture origin is different:
image

@groud
Copy link
Member

groud commented Jun 11, 2024

Apparently it's still broken if texture origin is different:

Hmm, it's not only the grid that is broken, it's more like we should probably extend the grid and the light background to cover both the offset texture region and the current area.

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

Successfully merging this pull request may close these issues.

3 participants