内容表

上一话题

Qt3DExtras.QPerVertexColorMaterial

下一话题

Qt3DExtras.QPhongMaterial

Qt3DExtras.QPhongAlphaMaterial

QPhongAlphaMaterial class provides a default implementation of the phong lighting effect with alpha. 更多

Inheritance diagram of PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial

概要

信号

详细描述

This class is deprecated; use QDiffuseSpecularMaterial 代替。

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.

  • Alpha is the transparency of the surface between 0 (fully transparent) and 1 (opaque).

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

QNode

构造新 QPhongAlphaMaterial instance with parent object parent .

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. alpha ( )
返回类型

float

另请参阅

setAlpha()

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. alphaChanged ( alpha )
参数

alpha float

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

QColor

另请参阅

setAmbient()

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

ambient QColor

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. blendFunctionArg ( )
返回类型

BlendFunction

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. blendFunctionArgChanged ( blendFunctionArg )
参数

blendFunctionArg BlendFunction

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. destinationAlphaArg ( )
返回类型

Blending

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. destinationAlphaArgChanged ( destinationAlphaArg )
参数

destinationAlphaArg Blending

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. destinationRgbArg ( )
返回类型

Blending

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. destinationRgbArgChanged ( destinationRgbArg )
参数

destinationRgbArg Blending

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

QColor

另请参阅

setDiffuse()

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

diffuse QColor

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. setAlpha ( alpha )
参数

alpha float

另请参阅

alpha()

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

ambient QColor

另请参阅

ambient()

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. setBlendFunctionArg ( blendFunctionArg )
参数

blendFunctionArg BlendFunction

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. setDestinationAlphaArg ( destinationAlphaArg )
参数

destinationAlphaArg Blending

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. setDestinationRgbArg ( destinationRgbArg )
参数

destinationRgbArg Blending

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

diffuse QColor

另请参阅

diffuse()

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

shininess float

另请参阅

shininess()

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. setSourceAlphaArg ( sourceAlphaArg )
参数

sourceAlphaArg Blending

另请参阅

sourceAlphaArg()

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. setSourceRgbArg ( sourceRgbArg )
参数

sourceRgbArg Blending

另请参阅

sourceRgbArg()

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

specular QColor

另请参阅

specular()

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

float

另请参阅

setShininess()

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

shininess float

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. sourceAlphaArg ( )
返回类型

Blending

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. sourceAlphaArgChanged ( sourceAlphaArg )
参数

sourceAlphaArg Blending

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. sourceRgbArg ( )
返回类型

Blending

另请参阅

setSourceRgbArg()

PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial. sourceRgbArgChanged ( sourceRgbArg )
参数

sourceRgbArg Blending

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

QColor

另请参阅

setSpecular()

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

specular QColor