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 cracking between quantized terrain tiles in 2D. #3486

Merged
merged 3 commits into from
Jan 28, 2016
Merged

Conversation

bagnell
Copy link
Contributor

@bagnell bagnell commented Jan 28, 2016

For #3393.

In 2D, the texture coordinates of the tile are interpolated over the rectangle to get the position in the vertex shader. When the texture coordinates are quantized, error is introduced. This can be seen through the 1px wide cracking between the quantized tiles in 2D. To compensate for the error, move the expand the rectangle in each direction by half the error amount.

@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 28, 2016

Update CHANGES.md.

@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 28, 2016

Looks good!

pjcozzi added a commit that referenced this pull request Jan 28, 2016
Fix cracking between quantized terrain tiles in 2D.
@pjcozzi pjcozzi merged commit 0585597 into master Jan 28, 2016
@pjcozzi pjcozzi deleted the 2d-cracking branch January 28, 2016 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants