QDepthRange Class
class Qt3DRender::QDepthRange深度バッファに書き込まれた深度値の再マッピングを有効にします。詳細...
ヘッダ: | #include <QDepthRange> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake | QT += 3drender |
QML で | DepthRange |
を継承しています: | Qt3DRender::QRenderState |
ステータス | 非推奨 |
プロパティ
パブリック機能
パブリックスロット
void | setFarValue(double value) |
void | setNearValue(double value) |
シグナル
void | farValueChanged(double farValue) |
void | nearValueChanged(double nearValue) |
詳細説明
デフォルトでは、OpenGL はシーンの奥行き情報を [0.0, 1.0] の範囲で奥行きバッファに書き込みます。QDepthRange を使用すると、これらの値を別の範囲にマッピングできるため、シーンの一部が常に他の部分の前または後ろにレンダリングされます。near と far の有効な値は 0 から 1 の間です。
プロパティ ドキュメント
farValue : double
ファークリップ平面に対応する深度バッファ値。有効な値は 0 から 1。
アクセス関数:
double | farValue() const |
void | setFarValue(double value) |
通知シグナル:
void | farValueChanged(double farValue) |
nearValue : double
ニアクリッププレーンに対応する深度バッファ値。有効な値は 0 から 1。
アクセス関数:
double | nearValue() const |
void | setNearValue(double value) |
通知シグナル:
void | nearValueChanged(double nearValue) |
© 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.