StarArawn / kayak_ui

Other
471 stars 50 forks source link

Quads with borders cannot have a transparent background #257

Open NiseVoid opened 1 year ago

NiseVoid commented 1 year ago

When setting a border, the border is drawn as a slightly larger quad behind the real one. This means that setting a background with a non-1 alpha value shows the border color behind the element.

StarArawn commented 1 year ago

With how we render I'm not sure this is really a fixable item. I think using an opacity layer instead probably makes sense, but obviously there are performance concerns. Technically we can probably add a border with sdf instead but I ran into some issues doing that before.