このページでは

DepthTest QML Type

DepthTest 型は、フラグメントシェーダーの深度値と、書き込み先のサンプルの深度値とを比較して検証します。詳細...

Import Statement: import Qt3D.Render 2.12
In C++: QDepthTest
Inherits:

RenderState

Status: Deprecated

この型は非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

詳細な説明

DepthTest 型は、指定された深度テスト関数を使用して深度テストを有効にするために使用されます。深度テストにより、テストに合格したフラグメントの色値の書き込みが可能になり、テストに失敗したフラグメントは破棄されます。 深度テストでは、深度関数を使用して、フラグメントの深度値を z バッファの値と比較してテストします。基になるサーフェスに z バッファがない場合、DepthTest は何も行いません。

AlphaTest およびStencilTestも参照してください 。

プロパティのドキュメント

depthFunction : enumeration

深度テストで使用される現在の関数を保持します。デフォルトはDepthTest です。Never。

Qt3DRender::QDepthTest::DepthFunctionも参照してください 。

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