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

Fixed pixel snap precision artifact #26567

Merged
merged 1 commit into from Mar 4, 2019

Conversation

clayjohn
Copy link
Member

@clayjohn clayjohn commented Mar 4, 2019

As described in the thread for this issue. My first solution didn't work because it ended up offsetting the texture by an entire pixel. After some exploring I realized that the artifact looked just like a precision issue. Leading me to realize that all that was needed was to shift the pixel enough that it wouldn't move, but more than the minimum floating point precision.

Overall, the solution looks pretty hacky, but it works in both GLES2 and GLES3.

fixes #26467

@clayjohn clayjohn requested a review from reduz as a code owner March 4, 2019 07:30
@volzhs
Copy link
Contributor

volzhs commented Mar 4, 2019

comment on source code will help others in the future

@Chaosus Chaosus added this to the 3.1 milestone Mar 4, 2019
@clayjohn
Copy link
Member Author

clayjohn commented Mar 4, 2019

@volzhs You are right. Added!

@akien-mga akien-mga merged commit b753223 into godotengine:master Mar 4, 2019
@akien-mga
Copy link
Member

Thanks!

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.

Strange artifacts in pixel art when in fullscreen
4 participants