QPerVertexColorMaterial Class

class Qt3DExtras::QPerVertexColorMaterial

각 버텍스에 설정된 컬러 프로퍼티를 렌더링하기 위한 기본 구현을 제공하는 QPerVertexColorMaterial 클래스가 있습니다. 더 보기...

Header: #include <QPerVertexColorMaterial>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
상속합니다: Qt3DRender::QMaterial
상태: Deprecated

공용 함수

QPerVertexColorMaterial(Qt3DCore::QNode *parent = nullptr)
virtual ~QPerVertexColorMaterial()

상세 설명

이 조명 효과는 앰비언트와 디퓨즈 두 가지 조명 컴포넌트의 조합을 기반으로 합니다. 앰비언트는 버텍스 컬러로 설정됩니다. 디퓨즈는 각 버텍스의 정규 분포를 고려합니다.

  • 앰비언트는 다른 광원 없이 오브젝트에서 방출되는 색입니다.
  • 확산은 조명에 의한 거친 표면 반사에 대해 방출되는 색상입니다.

이 머티리얼은 단일 렌더 패스 접근 방식의 효과를 사용하며 조각 조명을 형성합니다. OpenGL 2, OpenGL 3 이상 및 OpenGL ES 2에 대한 기술이 제공됩니다.

멤버 함수 문서

[explicit] QPerVertexColorMaterial::QPerVertexColorMaterial(Qt3DCore::QNode *parent = nullptr)

부모 오브젝트 parent 를 사용하여 새 QPerVertexColorMaterial 인스턴스를 생성합니다.

[virtual noexcept] QPerVertexColorMaterial::~QPerVertexColorMaterial()

를 파괴합니다. QPerVertexColorMaterial

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