Scatter QML Type
散射噪音效果更多
| Import Statement: | import QtQuick3D.Effects 6.11 |
| Status: | Deprecated since 6.5 |
自 QtQuick3D.Effects 6.5 起,该类型已被弃用。我们强烈建议不要在新代码中使用它。
属性
- amount : real
- direction : int
- noiseSample : TextureInput
- randomize : bool
详细说明
请使用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.