Qt3DRender::QPolygonOffset Class
class Qt3DRender::QPolygonOffsetQPolygonOffset クラスは、ポリゴンのオフセットに対する奥行き値を計算するためのスケールとステップを設定します。詳細...
| ヘッダー: | #include <qpolygonoffset.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML内: | PolygonOffset |
| 継承元: | Qt3DRender::QRenderState |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
- depthSteps : float
- scaleFactor : float
パブリック関数
| QPolygonOffset(Qt3DCore::QNode *parent = nullptr) | |
| float | depthSteps() const |
| float | scaleFactor() const |
パブリックスロット
| void | setDepthSteps(float depthSteps) |
| void | setScaleFactor(float scaleFactor) |
シグナル
| void | depthStepsChanged(float depthSteps) |
| void | scaleFactorChanged(float scaleFactor) |
詳細な説明
QPolygonOffset クラスは、深度テストおよび深度書き込みの前に、フラグメントの深度値にオフセットを加算します。このオフセットを使用することで、デカールなど、深度値が非常に近いポリゴンをレンダリングする際の Z ファイティングを回避できます。
プロパティのドキュメント
depthSteps : float
一定の深度オフセットを生成するユニットを保持します。デフォルト値は 0 です。
アクセス関数:
| float | depthSteps() const |
| void | setDepthSteps(float depthSteps) |
通知シグナル:
| void | depthStepsChanged(float depthSteps) |
scaleFactor : float
各ポリゴンに対して可変の深度オフセットを作成するために使用されるスケール係数を保持します。デフォルト値は 0 です。
アクセス関数:
| float | scaleFactor() const |
| void | setScaleFactor(float scaleFactor) |
通知信号:
| void | scaleFactorChanged(float scaleFactor) |
メンバ関数のドキュメント
[explicit] QPolygonOffset::QPolygonOffset(Qt3DCore::QNode *parent = nullptr)
このコンストラクタは、指定された値を使用して新しいQPolygonOffset::QPolygonOffset インスタンスを作成します。parent
© 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.