内容表

上一话题

Qt3DExtras.QMetalRoughMaterial

下一话题

Qt3DExtras.QNormalDiffuseMapMaterial

Qt3DExtras.QMorphPhongMaterial

QMorphPhongMaterial class provides a default implementation of the phong lighting effect. 更多

Inheritance diagram of PySide2.Qt3DExtras.Qt3DExtras.QMorphPhongMaterial

概要

信号

详细描述

The phong 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. QMorphPhongMaterial ( [ parent=None ] )
param parent

QNode

构造新 QMorphPhongMaterial instance with parent object parent .

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

QColor

另请参阅

setAmbient()

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

ambient QColor

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

QColor

另请参阅

setDiffuse()

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

diffuse QColor

PySide2.Qt3DExtras.Qt3DExtras.QMorphPhongMaterial. interpolator ( )
返回类型

float

另请参阅

setInterpolator()

PySide2.Qt3DExtras.Qt3DExtras.QMorphPhongMaterial. interpolatorChanged ( interpolator )
参数

interpolator float

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

ambient QColor

另请参阅

ambient()

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

diffuse QColor

另请参阅

diffuse()

PySide2.Qt3DExtras.Qt3DExtras.QMorphPhongMaterial. setInterpolator ( interpolator )
参数

interpolator float

另请参阅

interpolator()

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

shininess float

另请参阅

shininess()

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

specular QColor

另请参阅

specular()

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

float

另请参阅

setShininess()

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

shininess float

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

QColor

另请参阅

setSpecular()

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

specular QColor