TiltShift QML Type
倾斜移轴模糊效果。更多...
| Import Statement: | import QtQuick3D.Effects 6.12 |
| Status: | Deprecated since 6.5 |
自 QtQuick3D.Effects 6.5 起,此类型已被废弃。我们强烈建议不要在新代码中使用它。
属性
- blurAmount : real
- focusPosition : real
- focusWidth : real
- isInverted : bool
- isVertical : bool
详细说明
请改用ExtendedSceneEnvironment 、MultiEffect ,或通过Effect 类型使用用户自定义效果。
警告: 从 Qt 6.5 开始,QtQuick3D.Effects中所有 现成的独立特效均 被视为已弃用。建议应用程序在适用时改用ExtendedSceneEnvironment 或MultiEffect ,或者通过Effect 类型提供自己的自定义后处理特效。

TiltShift 效果以简单且高效的方式模拟景深。它并非基于深度缓冲区进行模糊处理,而是将场景中水平或垂直条带之外的所有内容进行模糊处理。
另请参阅 DepthOfFieldHQBlur 。
属性文档
blurAmount : real
指定模糊效果的强度。大于 4 的数值可能会导致图像失真。取值范围为[0...10] 。默认值为4 。
focusPosition : real
焦点条在归一化坐标系中的位置。范围为[0...1] 。默认值为0.5 ,对应场景的中点。
focusWidth : real
指定对焦区域的宽度(以归一化坐标表示)。位于focusPosition 范围内的对象将处于对焦状态。该范围为[0...1] 。默认值为0.2 。
isInverted : bool
将模糊区域反转,使中心区域变得模糊。默认值为false 。
isVertical : bool
使效果沿垂直方向而非水平方向生效。默认值为false 。
© 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.