AdditiveColorGradient QML Type

具有叠加色彩效果的渐变效果更多

Import Statement: import QtQuick3D.Effects 6.9
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) (即白色)。


© 2025 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.