signed distance fields are friggin rad
-
-
Replying to @pcwalton
How else would you smoothly draw gecko’s piecewise wavy line with aa? https://github.com/servo/webrender/pull/1923 …
2 replies 0 retweets 0 likes -
Replying to @Gankra_
Clip y=sin(x) to pixel boundaries in a fragment shader, use Green’s Theorem to calculate pixel square coverage.
2 replies 0 retweets 0 likes -
-
Replying to @Gankra_
Arcs or Bezier curves can be handled similarly as long as you can clip them to the pixel square.
1 reply 0 retweets 0 likes -
Replying to @pcwalton
I’d like to try replacing all the SDF antialiasing code in WebRender with Green’s Theorem based AA at some point.
2 replies 0 retweets 2 likes
The distance based AA simply isn’t correct…it’s a crude approximation that’s valid in 1D but not in 2D. You can really tell the diff.
9:49 AM - 27 Oct 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.