Closed jimbojw closed 2 years ago
Sorry for the late addition of the Scene level antialiasingFactor
. PTAL.
Per offline conversation, eventually it would be better to have the antialiasing factor be a sprite attribute. This would allow, say, glyphs to have a different antialiasing factor from scatter plot points.
Currently, Megaplot does not have a good story around non-zero default values. Since the default antialiasing factor really ought to be 0.5, it makes sense to hold off on adding one until there's general support for non-zero defaults. See #81
Fixes #79
Before:
After:
The above images use a synthetic
devicePixelRatio
of 0.1 so that it takes 10 logical pixels to fill 1 synthetic device pixel.They also have artificially set the canvas's
image-rendering
attribute topixelated
. Without this, the browser would soften the rendered canvas image with bilinear resampling.