Qt3DExtras.QNormalDiffuseMapMaterial

QNormalDiffuseMapMaterial provides a default implementation of the phong lighting and bump effect where the diffuse light component is read from a texture map and the normals of the mesh being rendered from a normal texture map. 更多

Inheritance diagram of PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial

概要

信号

详细描述

This class is deprecated; use QDiffuseSpecularMaterial 代替。

The specular lighting effect is based on the combination of 3 lighting components ambient, diffuse and specular. The relative strengths of these components are controlled by means of their reflectivity coefficients which are modelled as RGB triplets:

  • Ambient is the color that is emitted by an object without any other light source.

  • Diffuse is the color that is emitted for rought surface reflections with the lights.

  • Specular is the color emitted for shiny surface reflections with the lights.

  • The shininess of a surface is controlled by a float property.

This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.

class PySide2.Qt3DExtras.Qt3DExtras. QNormalDiffuseMapMaterial ( [ parent=None ] )
param parent

QNode

构造新 QNormalDiffuseMapMaterial instance with parent object parent .

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. ambient ( )
返回类型

QColor

另请参阅

setAmbient()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. ambientChanged ( ambient )
参数

ambient QColor

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. diffuse ( )
返回类型

QAbstractTexture

另请参阅

setDiffuse()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. diffuseChanged ( diffuse )
参数

diffuse QAbstractTexture

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. normal ( )
返回类型

QAbstractTexture

另请参阅

setNormal()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. normalChanged ( normal )
参数

normal QAbstractTexture

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. setAmbient ( ambient )
参数

ambient QColor

另请参阅

ambient()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. setDiffuse ( diffuse )
参数

diffuse QAbstractTexture

另请参阅

diffuse()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. setNormal ( normal )
参数

normal QAbstractTexture

另请参阅

normal()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. setShininess ( shininess )
参数

shininess float

另请参阅

shininess()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. setSpecular ( specular )
参数

specular QColor

另请参阅

specular()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. setTextureScale ( textureScale )
参数

textureScale float

另请参阅

textureScale()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. shininess ( )
返回类型

float

另请参阅

setShininess()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. shininessChanged ( shininess )
参数

shininess float

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. specular ( )
返回类型

QColor

另请参阅

setSpecular()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. specularChanged ( specular )
参数

specular QColor

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. textureScale ( )
返回类型

float

另请参阅

setTextureScale()

PySide2.Qt3DExtras.Qt3DExtras.QNormalDiffuseMapMaterial. textureScaleChanged ( textureScale )
参数

textureScale float