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 实例。