本页内容

ChromaticAberration 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 类型提供自己的自定义后处理效果。

展示色差效应的场景对比

ChromaticAberration 效果模拟了光学透镜的缺陷。在现实生活中,色差是一种光学现象,会在高对比度区域产生色边。这些色边是由不同颜色的光以不同角度折射,将白光分解成光谱而引起的。这种现象被称为色散。

属性文档

aberrationAmount : real

畸变效果的强度。负值会使效果反转。默认值为50 。

focusDepth : real

到焦平面的距离。色散会根据与该距离的比值进行缩放。默认值为600 。

maskTexture : TextureInput

一张灰度纹理,用于控制效果的位置和强度。效果在白色区域最强,在黑色区域最弱。默认纹理为Texture ,来源为"maps/white.png" 。

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