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 blurry rendering on web demo #149

Closed
wants to merge 3 commits into from

Conversation

aakamenov
Copy link
Contributor

Hi emilk ,

This a fix for #103 . As per your suggestion, rounding both values to the nearest even integer did the trick. I don't know if there is a better way to implement this (I don't have much Rust experience). Could add a function to emath/src/vec2.rs that works on the struct , but since it would only be used here and this is a hack anyway, I thought that it would be unnecessary. I've compiled the web demo with the latest master branch too.

Thanks,
Asparuh

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Thank you so much for taking a stab at this!

Unfortunately your rounding only works for integers (many people have non-integral pixels_per_point). Furthermore I only publish a new wasm every other week or so (on a new egui release) so as not to pollute the git history with too many large files. Not easy for you to know!

Anyway, instead of reworking this PR I thought it would be quicker to just create another one, please try it out at #151

@emilk
Copy link
Owner

emilk commented Feb 1, 2021

Closed in favor of #151

@emilk emilk closed this Feb 1, 2021
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.

2 participants