Whenever I draw a polygon using opengl the edges look bad because straight lines look bad. I want the edges to have nice soft antialiased edges but that's not how opengl draws polygons. Multisampling AA doesn't help as much as I expect it to.
-
-
An alternate simpler approach is just to calculate the distance to the line. But you need a good area approximation formula for this to look good (area determines the shade of gray, not distance—common mistake). I created one with some statistics here: https://github.com/servo/webrender/blob/ad6cec76254030e8fcc4e6c7e5e300c69b6d36ca/webrender/res/shared.glsl#L91 …
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.