QDepthTest Class
class Qt3DRender::QDepthTestQDepthTest 클래스는 조각 셰이더의 깊이 값을 쓰기 중인 샘플의 깊이와 비교하여 테스트합니다. 더 보기...
Header: | #include <QDepthTest> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
QML에서: | DepthTest |
상속합니다: | Qt3DRender::QRenderState |
상태: | Deprecated |
공용 유형
enum | DepthFunction { Never, Always, Less, LessOrEqual, Equal, …, NotEqual } |
속성
- depthFunction : DepthFunction
공용 기능
QDepthTest(Qt3DCore::QNode *parent = nullptr) | |
Qt3DRender::QDepthTest::DepthFunction | depthFunction() const |
공용 슬롯
void | setDepthFunction(Qt3DRender::QDepthTest::DepthFunction depthFunction) |
신호
void | depthFunctionChanged(Qt3DRender::QDepthTest::DepthFunction depthFunction) |
상세 설명
주어진 깊이 테스트 함수를 사용하여 깊이 테스트를 활성화하는 데 사용되는 QDepthTest 클래스입니다. 깊이 테스트는 깊이 테스트가 통과하면 조각 색상 값을 쓰고 테스트에 실패하면 조각을 거부할 수 있도록 합니다. 깊이 테스트는 깊이 함수를 사용하여 조각 깊이 값을 z-버퍼에 대한 값으로 테스트합니다. 기본 서페이스에 z-버퍼가 없는 경우 QDepthTest는 아무 작업도 수행하지 않습니다.
QAlphaTest 및 QStencilTest 을참조하십시오 .
멤버 유형 문서
enum QDepthTest::DepthFunction
깊이 함수 값에 대한 열거형
상수 | 값 | 설명 |
---|---|---|
Qt3DRender::QDepthTest::Never | 0x0200 | 깊이 테스트 불합격 |
Qt3DRender::QDepthTest::Always | 0x0207 | 항상 뎁스 테스트 통과 |
Qt3DRender::QDepthTest::Less | 0x0201 | 조각 깊이가 z-버퍼 값보다 작으면 깊이 테스트 통과 |
Qt3DRender::QDepthTest::LessOrEqual | 0x0203 | 조각 깊이가 z-버퍼 값보다 작거나 같으면 깊이 테스트 통과 |
Qt3DRender::QDepthTest::Equal | 0x0202 | 조각 깊이가 z-버퍼 값과 같으면 깊이 테스트 통과 |
Qt3DRender::QDepthTest::GreaterOrEqual | 0x0206 | 조각 깊이가 z-버퍼 값보다 크거나 같으면 깊이 테스트 통과 |
Qt3DRender::QDepthTest::Greater | 0x0204 | 조각 깊이가 z-버퍼 값보다 크면 깊이 테스트 통과 |
Qt3DRender::QDepthTest::NotEqual | 0x0205 | 조각 깊이가 z-버퍼 값과 같지 않으면 깊이 테스트 통과 |
프로퍼티 문서
depthFunction : DepthFunction
깊이 테스트에 사용되는 현재 함수를 유지합니다. 기본값은 안 함입니다.
기능에 액세스합니다:
Qt3DRender::QDepthTest::DepthFunction | depthFunction() const |
void | setDepthFunction(Qt3DRender::QDepthTest::DepthFunction depthFunction) |
알림 신호:
void | depthFunctionChanged(Qt3DRender::QDepthTest::DepthFunction depthFunction) |
멤버 함수 문서
[explicit]
QDepthTest::QDepthTest(Qt3DCore::QNode *parent = nullptr)
생성자는 지정된 parent 을 사용하여 새 QDepthTest::QDepthTest 인스턴스를 생성합니다.
© 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.