QPolygonOffset Class
class Qt3DRender::QPolygonOffsetQPolygonOffset 클래스는 다각형 오프셋의 깊이 값을 계산하기 위한 배율과 단계를 설정합니다. 더 보기...
Header: | #include <QPolygonOffset> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
QML에서: | PolygonOffset |
상속합니다: | Qt3DRender::QRenderState |
상태: | Deprecated |
속성
- 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
© 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.