本页内容

DistortionRipple QML Type

涟漪失真效果。更多...

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

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

属性

详细说明

请改用ExtendedSceneEnvironment 、MultiEffect ,或通过Effect 类型使用用户自定义效果。

警告: 从 Qt 6.5 开始,QtQuick3D.Effects中所有 现成的独立效果均 被视为已弃用。建议应用程序在适用时改用ExtendedSceneEnvironment 或MultiEffect ,或者通过Effect 类型提供自己的自定义后处理效果。

显示畸变波纹效应的场景对比

DistortionRipple 效果会在中心点周围添加波浪状的圆形涟漪失真效果。

属性文档

center : vector2d

畸变的中心点。默认值为Qt.vector2d(0.5, 0.5) ,即场景的中心。

distortionHeight : real

失真量。合理的数值范围为[0...100] 。默认值为10 。

distortionPhase : real

每道波的偏移量。对该属性进行动画处理,即可观察波浪的移动。合理的取值范围为[0...360] 。默认值为0 。

distortionWidth : real

波纹的宽度。合理的取值范围为[2...100] 。默认值为10 。

radius : real

涟漪从中心点向外扩散的距离。合理的数值范围为[0...100] 。默认值为100 。

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