jpbruyere / vkvg

Vulkan 2D graphics library
https://jpbruyere.github.io/vkvg/
MIT License
773 stars 33 forks source link

feature request: box (rounded rectangle) gradient #92

Open billzez opened 2 years ago

billzez commented 2 years ago

This is useful for GUIs and drop shadows. NanoVG shader implements box, linear, and radial using the shader below, but obviously it only supports two color stops.

https://github.com/memononen/nanovg/blob/master/src/nanovg_gl.h#L638