QTexturedMetalRoughMaterial Class

(Qt3DExtras::QTexturedMetalRoughMaterial)

The QTexturedMetalRoughMaterial provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps). 更多...

头文件: #include <QTexturedMetalRoughMaterial>
qmake: QT += 3dextras
开始支持版本: Qt 5.9
基类: Qt3DRender::QMaterial

属性

  • normal : Qt3DRender::QAbstractTexture *
  • roughness : Qt3DRender::QAbstractTexture *

公有函数

QTexturedMetalRoughMaterial(Qt3DCore::QNode *parent = nullptr)
~QTexturedMetalRoughMaterial()
Qt3DRender::QAbstractTexture *ambientOcclusion() const
Qt3DRender::QAbstractTexture *baseColor() const
Qt3DRender::QAbstractTexture *metalness() const
Qt3DRender::QAbstractTexture *normal() const
Qt3DRender::QAbstractTexture *roughness() const

公有槽函数

void setAmbientOcclusion(Qt3DRender::QAbstractTexture *ambientOcclusion)
void setBaseColor(Qt3DRender::QAbstractTexture *baseColor)
void setMetalness(Qt3DRender::QAbstractTexture *metalness)
void setNormal(Qt3DRender::QAbstractTexture *normal)
void setRoughness(Qt3DRender::QAbstractTexture *roughness)

信号

void ambientOcclusionChanged(Qt3DRender::QAbstractTexture *ambientOcclusion)
void baseColorChanged(Qt3DRender::QAbstractTexture *baseColor)
void metalnessChanged(Qt3DRender::QAbstractTexture *metalness)
void normalChanged(Qt3DRender::QAbstractTexture *normal)
void roughnessChanged(Qt3DRender::QAbstractTexture *roughness)

受保护的函数

QTexturedMetalRoughMaterial(QTexturedMetalRoughMaterialPrivate &dd, Qt3DCore::QNode *parent = nullptr)

其他继承的成员

  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

The QTexturedMetalRoughMaterial provides a default implementation of PBR lighting, environment maps and bump effect where the components are read from texture maps (including normal maps).

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

属性

ambientOcclusion : Qt3DRender::QAbstractTexture *

Holds the current ambient occlusion map texture.

By default, the ambient occlusion texture has the following properties:

  • Linear minification and magnification filters
  • Linear mipmap with mipmapping enabled
  • Repeat wrap mode
  • Maximum anisotropy of 16.0

访问函数:

Qt3DRender::QAbstractTexture *ambientOcclusion() const
void setAmbientOcclusion(Qt3DRender::QAbstractTexture *ambientOcclusion)

Notifier signal:

void ambientOcclusionChanged(Qt3DRender::QAbstractTexture *ambientOcclusion)

baseColor : Qt3DRender::QAbstractTexture *

Holds the current base color map texture.

By default, the base color texture has the following properties:

  • Linear minification and magnification filters
  • Linear mipmap with mipmapping enabled
  • Repeat wrap mode
  • Maximum anisotropy of 16.0

访问函数:

Qt3DRender::QAbstractTexture *baseColor() const
void setBaseColor(Qt3DRender::QAbstractTexture *baseColor)

Notifier signal:

void baseColorChanged(Qt3DRender::QAbstractTexture *baseColor)

metalness : Qt3DRender::QAbstractTexture *

Holds the current metalness map texture.

By default, the metalness texture has the following properties:

  • Linear minification and magnification filters
  • Linear mipmap with mipmapping enabled
  • Repeat wrap mode
  • Maximum anisotropy of 16.0

访问函数:

Qt3DRender::QAbstractTexture *metalness() const
void setMetalness(Qt3DRender::QAbstractTexture *metalness)

Notifier signal:

void metalnessChanged(Qt3DRender::QAbstractTexture *metalness)

normal : Qt3DRender::QAbstractTexture *

Holds the current normal map texture.

By default, the normal texture has the following properties:

  • Linear minification and magnification filters
  • Repeat wrap mode
  • Maximum anisotropy of 16.0

访问函数:

Qt3DRender::QAbstractTexture *normal() const
void setNormal(Qt3DRender::QAbstractTexture *normal)

Notifier signal:

void normalChanged(Qt3DRender::QAbstractTexture *normal)

roughness : Qt3DRender::QAbstractTexture *

Holds the current roughness map texture.

By default, the roughness texture has the following properties:

  • Linear minification and magnification filters
  • Linear mipmap with mipmapping enabled
  • Repeat wrap mode
  • Maximum anisotropy of 16.0

访问函数:

Qt3DRender::QAbstractTexture *roughness() const
void setRoughness(Qt3DRender::QAbstractTexture *roughness)

Notifier signal:

void roughnessChanged(Qt3DRender::QAbstractTexture *roughness)

成员函数

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

Default constructs an instance of QTexturedMetalRoughMaterial.

[protected] QTexturedMetalRoughMaterial::QTexturedMetalRoughMaterial(QTexturedMetalRoughMaterialPrivate &dd, Qt3DCore::QNode *parent = nullptr)

Copy constructor.

QTexturedMetalRoughMaterial::~QTexturedMetalRoughMaterial()

Destroys the QTexturedMetalRoughMaterial instance.