Open billzez opened 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
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