NanoVG basically has “blurry rounded rectangle” as a single-pass drawing primitive and it’s kind of embarrassing how big a performance improvement it is for typical UIs.
Yep, I was just thinking the other day that you could actually probably get really close to true Gaussian blur by filling a color ramp with the error function around a rounded rect (I worked out the calculus for this on a plane trip a few years ago)
-
-
Definitely sounds doable, have you seen this? http://madebyevan.com/shaders/fast-rounded-rectangle-shadows/ … The linked stereopsis article is a classic.
-
Yep :) I wrote a similar article https://pcwalton.github.io/2015/12/21/drawing-css-box-shadows-in-webrender.html …
- 1 more reply
New conversation -
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.