Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找创建渐变背景(例如从黑色到白色)的 C++ 代码。目前我通过设置Qt3DWindow的clear color只有一个纯色:
Qt3DExtras::Qt3DWindow->defaultFrameGraph()->setClearColor(QColor(QRgb(0x4d4d9f)))
如何制作渐变?
也许有点晚了,但你看过Wave 的例子吗?他们通过那里的着色器实现了这种效果。