signed distance fields are friggin rad
Clip y=sin(x) to pixel boundaries in a fragment shader, use Green’s Theorem to calculate pixel square coverage.
-
-
It’s not a sin wave at all
-
Arcs or Bezier curves can be handled similarly as long as you can clip them to the pixel square.
- 8 more replies
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.