Qt3DExtras::QMetalRoughMaterial Class
class Qt3DExtras::QMetalRoughMaterialQMetalRoughMaterial은 PBR 조명의 기본 구현을 제공합니다. 더 보기...
| 헤더: | #include <qmetalroughmaterial.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| QML에서: | MetalRoughMaterial |
| 상속: | Qt3DRender::QMaterial |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
속성
|
|
공개 함수
| QMetalRoughMaterial(Qt3DCore::QNode *parent = nullptr) | |
| virtual | ~QMetalRoughMaterial() |
| QVariant | ambientOcclusion() const |
| QVariant | baseColor() const |
| QVariant | metalness() const |
| QVariant | normal() const |
| QVariant | roughness() const |
| float | textureScale() const |
공개 슬롯
| void | setAmbientOcclusion(const QVariant &ambientOcclusion) |
| void | setBaseColor(const QVariant &baseColor) |
| void | setMetalness(const QVariant &metalness) |
| void | setNormal(const QVariant &normal) |
| void | setRoughness(const QVariant &roughness) |
| void | setTextureScale(float textureScale) |
신호
| void | ambientOcclusionChanged(const QVariant &ambientOcclusion) |
| void | baseColorChanged(const QVariant &baseColor) |
| void | metalnessChanged(const QVariant &metalness) |
| void | normalChanged(const QVariant &normal) |
| void | roughnessChanged(const QVariant &roughness) |
| void | textureScaleChanged(float textureScale) |
속성 설명서
ambientOcclusion : QVariant
머티리얼의 현재 앰비언트 오클루전 맵 텍스처를 저장합니다. 이 값은 반드시 텍스처여야 하며, 그렇지 않은 경우 무시됩니다. 기본적으로 이 맵은 설정되어 있지 않습니다.
액세스 함수:
| QVariant | ambientOcclusion() const |
| void | setAmbientOcclusion(const QVariant &ambientOcclusion) |
알림 신호:
| void | ambientOcclusionChanged(const QVariant &ambientOcclusion) |
baseColor : QVariant
머티리얼의 현재 기본 색상을 저장합니다. 이는 단색 값이거나 텍스처일 수 있습니다. 기본적으로 이 속성의 값은 "grey"입니다.
액세스 함수:
| QVariant | baseColor() const |
| void | setBaseColor(const QVariant &baseColor) |
알림 신호:
| void | baseColorChanged(const QVariant &baseColor) |
metalness : QVariant
재료의 현재 금속성 수준을 0(순수 유전체, 기본값)에서 1(순수 금속) 사이의 값으로 저장합니다. 이 값은 단순한 균일한 값이거나 텍스처일 수 있습니다. 기본적으로 이 속성의 값은 0입니다.
액세스 함수:
| QVariant | metalness() const |
| void | setMetalness(const QVariant &metalness) |
알림 신호:
| void | metalnessChanged(const QVariant &metalness) |
normal : QVariant
머티리얼의 현재 노멀 맵 텍스처를 저장합니다. 이 값은 반드시 텍스처여야 하며, 그렇지 않은 경우 무시됩니다. 기본적으로 이 맵은 설정되어 있지 않습니다.
액세스 함수:
| QVariant | normal() const |
| void | setNormal(const QVariant &normal) |
알림 신호:
| void | normalChanged(const QVariant &normal) |
roughness : QVariant
재료의 현재 거칠기 수준을 저장합니다. 이는 단순한 균일한 값이거나 텍스처일 수 있습니다. 기본적으로 이 속성의 값은 0입니다.
액세스 함수:
| QVariant | roughness() const |
| void | setRoughness(const QVariant &roughness) |
알림 신호:
| void | roughnessChanged(const QVariant &roughness) |
textureScale : float
현재 텍스처 배율을 저장합니다. 렌더링 시 텍스처 좌표에 곱셈 계수로 적용됩니다. 기본값은 1.0입니다.
textureScale는 QTextureWrapMode::Repeat와 함께 사용하면 표면 전체에 텍스처를 타일링하는 간단한 방법을 제공합니다. 예를 들어, 텍스처 스케일이 4.0 인 경우 16개(4x4)의 타일이 생성됩니다.
액세스 함수:
| float | textureScale() const |
| void | setTextureScale(float textureScale) |
알림 신호:
| void | textureScaleChanged(float textureScale) |
멤버 함수 문서
[explicit] QMetalRoughMaterial::QMetalRoughMaterial(Qt3DCore::QNode *parent = nullptr)
parent 를 부모 객체로 하는 새로운 QMetalRoughMaterial 인스턴스를 생성합니다.
[virtual noexcept] QMetalRoughMaterial::~QMetalRoughMaterial()
QMetalRoughMaterial 인스턴스를 삭제합니다.
© 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.