本页内容

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

展示散射效果的场景对比

将场景中的像素进行散射,营造出模糊或涂抹的效果。散射效果不会改变每个像素的颜色,而是将像素随机重新分布,但仍保留在与原始位置大致相同的区域内。

属性文档

amount : real

用于确定散布的幅度。取值范围为[0...127] 。默认值为10 。

direction : int

像素散射的方向。若需同时设置水平和垂直方向,请设为0 ;若仅需设置水平方向,请设为1 ;若仅需设置垂直方向,请设为2 。默认值为0 。

noiseSample : TextureInput

散射噪声纹理贴图。默认使用Texture ,来源为"maps/brushnoise.png" 。

randomize : bool

指定散射模式是否随每一帧而变化。默认值为true 。

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