How can I create a gadient background in Qt3D?

1.2k views Asked by At

I am looking for the C++ code that creates a gradient background (e.g. from black to white). Currently I only have a solid color by setting the clear color of Qt3DWindow:

Qt3DExtras::Qt3DWindow->defaultFrameGraph()->setClearColor(QColor(QRgb(0x4d4d9f)))

How can I make a gradient?

1

There are 1 answers

0
Florian Blume On

Maybe a bit late, but did you have a look at the Wave example? They achieve this effect with a shader there.