이 페이지에서

Qt3DRender::QPolygonOffset Class

class Qt3DRender::QPolygonOffset

QPolygonOffset 클래스는 폴리곤 오프셋에 대한 깊이 값을 계산하기 위한 배율과 단계(step)를 설정합니다. 더 보기...

헤더: #include <qpolygonoffset.h>
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-fighting을 방지하는 데 사용할 수 있습니다.

속성 설명

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

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