Qt5 Scene Graph custom geometry and gradients
QML and Qt Quick
4
Posts
2
Posters
1.1k
Views
1
Watching
-
I don't really have an example as the code will highly depend on the kind of shape and gradient you are trying to achieve. The easiest way is to use QSGGeometry::ColoredPoint2D for your vertices data and to adjust their color and placement in such way that when color is interpolated between vertices in fragment shader you get your desired gradient. I don't know if this will be implemented in ready made materials in the future.