本页内容

AdditiveColorGradient QML Type

具有加法混色效果的渐变。更多...

Import Statement: import QtQuick3D.Effects 6.12
Status: Deprecated since 6.5

自 QtQuick3D.Effects 6.5 起,此类已弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

请改用ExtendedSceneEnvironment 。

警告: 从 Qt 6.5 开始,QtQuick3D.Effects 中所有 现成的独立效果均被 视为已弃用。若需进行色彩调整和调色,请改用ExtendedSceneEnvironment 。

展示加法色彩渐变效果的场景对比

此特效会在整个场景中添加垂直渐变,然后将其与图层上的所有其他元素进行加法混合。加法混合会将渐变和图层的像素值相加,从而使结果变亮。白色区域保持不变,黑色区域则呈现与渐变相同的颜色。

属性文档

bottomColor : vector3d

屏幕底部渐变所用的颜色。默认值为Qt.vector3d(0.0, 0.0, 0.0) (即黑色)。

topColor : vector3d

屏幕顶部渐变所用的颜色。默认值为Qt.vector3d(1.0, 1.0, 1.0) (即白色)。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.