TiltShift QML Type
倾斜移动模糊效果更多
Import Statement: | import QtQuick3D.Effects 6.9 |
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
。
© 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.