QPhongAlphaMaterialclass provides a default implementation of the phong lighting effect with alpha. 更多 …
def
alpha
()
def
ambient
()
def
blendFunctionArg
()
def
destinationAlphaArg
()
def
destinationRgbArg
()
def
diffuse
()
def
shininess
()
def
sourceAlphaArg
()
def
sourceRgbArg
()
def
specular
()
def
setAlpha
(alpha)
def
setAmbient
(ambient)
def
setBlendFunctionArg
(blendFunctionArg)
def
setDestinationAlphaArg
(destinationAlphaArg)
def
setDestinationRgbArg
(destinationRgbArg)
def
setDiffuse
(diffuse)
def
setShininess
(shininess)
def
setSourceAlphaArg
(sourceAlphaArg)
def
setSourceRgbArg
(sourceRgbArg)
def
setSpecular
(specular)
def
alphaChanged
(alpha)
def
ambientChanged
(ambient)
def
blendFunctionArgChanged
(blendFunctionArg)
def
destinationAlphaArgChanged
(destinationAlphaArg)
def
destinationRgbArgChanged
(destinationRgbArg)
def
diffuseChanged
(diffuse)
def
shininessChanged
(shininess)
def
sourceAlphaArgChanged
(sourceAlphaArg)
def
sourceRgbArgChanged
(sourceRgbArg)
def
specularChanged
(specular)
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.
PySide2.Qt3DExtras.Qt3DExtras.
QPhongAlphaMaterial
(
[
parent=None
]
)
¶
- param parent
QNode
构造新
QPhongAlphaMaterial
instance with parent object
parent
.
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
alpha
(
)
¶
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
alphaChanged
(
alpha
)
¶
alpha
–
float
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
ambient
(
)
¶
QColor
另请参阅
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
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
diffuseChanged
(
diffuse
)
¶
diffuse
–
QColor
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
setAlpha
(
alpha
)
¶
alpha
–
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
setAmbient
(
ambient
)
¶
ambient
–
QColor
另请参阅
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
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
setShininess
(
shininess
)
¶
shininess
–
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
setSourceAlphaArg
(
sourceAlphaArg
)
¶
sourceAlphaArg
–
Blending
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
setSourceRgbArg
(
sourceRgbArg
)
¶
sourceRgbArg
–
Blending
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
setSpecular
(
specular
)
¶
specular
–
QColor
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
shininess
(
)
¶
float
另请参阅
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
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
sourceRgbArgChanged
(
sourceRgbArg
)
¶
sourceRgbArg
–
Blending
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
specular
(
)
¶
QColor
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QPhongAlphaMaterial.
specularChanged
(
specular
)
¶
specular
–
QColor