Qt3DRender::QDithering Class
class Qt3DRender::QDithering启用抖动。更多
头文件: | #include <QDithering> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
在 QML 中: | Dithering |
继承: | Qt3DRender::QRenderState |
状态: | 已废弃 |
公共函数
QDithering(Qt3DCore::QNode *parent = nullptr) |
详细说明
Qt3DRender::QDithering 类可用于抖动。抖动会在颜色值中添加噪声,以随机化量化误差,从而防止最终图像中出现大尺度图案(如带状)。抖动在渲染到低颜色位深度(如 RGB565 或 RGBA4444)的表面时最有用。
成员函数文档
[explicit]
QDithering::QDithering(Qt3DCore::QNode *parent = nullptr)
构造函数使用指定的parent 创建一个新的QDithering::QDithering 实例。
© 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.