QPolygonOffset Class

class Qt3DRender::QPolygonOffset

QPolygonOffsetクラスは、ポリゴンオフセットの深さ値を計算するためのスケールとステップを設定します。詳細...

ヘッダー #include <QPolygonOffset>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake QT += 3drender
QML で PolygonOffset
を継承しています: Qt3DRender::QRenderState
ステータス非推奨

プロパティ

パブリック機能

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

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