Skip to content

Turn off antialias #502

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

Merged
merged 2 commits into from
Aug 30, 2019
Merged

Turn off antialias #502

merged 2 commits into from
Aug 30, 2019

Conversation

fsih
Copy link
Contributor

@fsih fsih commented Aug 28, 2019

Fixes #500

Also, antialias isn't supported on all browsers, so this should make behavior more consistent. The downside is that vectors will have pixely edges, especially on lower density devices

@fsih fsih added this to the August 2019 milestone Aug 28, 2019
@fsih fsih requested a review from cwillisf August 28, 2019 21:24
@adroitwhiz
Copy link
Contributor

To be clear, only the bounding-box edges are pixely:
image

Co-Authored-By: adroitwhiz <[email protected]>
@adroitwhiz
Copy link
Contributor

adroitwhiz commented Aug 29, 2019

This goes a bit deeper than I thought.

Looking at the Chromium bug which this is intended to work around, it appears that the problem's root cause is a bug in the code for CMAA, a form of morphological antialiasing.

Morphological antialiasing is essentially a post-processing filter run on the final render, and intended for 3D scenes. Because WebGL antialiasing is vendor-specific, certain platforms may be running their own vendor and platform-specific post-processing filters on the stage when antialiasing is enabled!

@fsih fsih merged commit 3819b66 into scratchfoundation:develop Aug 30, 2019
@fsih fsih deleted the turnOffAntiAlias branch August 30, 2019 15:27
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.

Black and white dots appearing on stage on Chromebook
3 participants