QMetalRoughMaterial Class

( Qt3DExtras::QMetalRoughMaterial )

The QMetalRoughMaterial provides a default implementation of PBR lighting. 更多...

頭: #include <QMetalRoughMaterial>
qmake: QT += 3dextras
Since: Qt 5.9
繼承: Qt3DRender::QMaterial

特性

公共函數

QMetalRoughMaterial (Qt3DCore::QNode * parent = nullptr)
~QMetalRoughMaterial ()
QColor baseColor () const
float metalness () const
float roughness () const

公共槽

void setBaseColor (const QColor & baseColor )
void setMetalness (float metalness )
void setRoughness (float roughness )

信號

void baseColorChanged (const QColor & baseColor )
void metalnessChanged (float metalness )
void roughnessChanged (float roughness )

保護函數

QMetalRoughMaterial (QMetalRoughMaterialPrivate & dd , Qt3DCore::QNode * parent = nullptr)

額外繼承成員

詳細描述

The QMetalRoughMaterial provides a default implementation of PBR lighting.

This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 3 only.

特性文檔編製

baseColor : QColor

Holds the current base color of the material.

訪問函數:

QColor baseColor () const
void setBaseColor (const QColor & baseColor )

通知程序信號:

void baseColorChanged (const QColor & baseColor )

metalness : float

Holds the current metalness level of the material, since is a value between 0 (purely dielectric, the default) and 1 (purely metallic).

訪問函數:

float metalness () const
void setMetalness (float metalness )

通知程序信號:

void metalnessChanged (float metalness )

roughness : float

Holds the current roughness level of the material.

訪問函數:

float roughness () const
void setRoughness (float roughness )

通知程序信號:

void roughnessChanged (float roughness )

成員函數文檔編製

QMetalRoughMaterial:: QMetalRoughMaterial ( Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QMetalRoughMaterial.

[protected] QMetalRoughMaterial:: QMetalRoughMaterial ( QMetalRoughMaterialPrivate & dd , Qt3DCore::QNode * parent = nullptr)

Copy constructor.

QMetalRoughMaterial:: ~QMetalRoughMaterial ()

銷毀 QMetalRoughMaterial 實例。