QDiffuseMapMaterialprovides a default implementation of the phong lighting effect where the diffuse light component is read from a texture map. 更多 …
def
setAmbient
(color)
def
setDiffuse
(diffuse)
def
setShininess
(shininess)
def
setSpecular
(specular)
def
setTextureScale
(textureScale)
def
ambientChanged
(ambient)
def
diffuseChanged
(diffuse)
def
shininessChanged
(shininess)
def
specularChanged
(specular)
def
textureScaleChanged
(textureScale)
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.
PySide2.Qt3DExtras.Qt3DExtras.
QDiffuseMapMaterial
(
[
parent=None
]
)
¶
- param parent
QNode
构造新
QDiffuseMapMaterial
instance with parent object
parent
.
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
ambient
(
)
¶
QColor
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
ambientChanged
(
ambient
)
¶
ambient
–
QColor
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
diffuse
(
)
¶
QAbstractTexture
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
diffuseChanged
(
diffuse
)
¶
diffuse
–
QAbstractTexture
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
setAmbient
(
color
)
¶
color
–
QColor
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
setDiffuse
(
diffuse
)
¶
diffuse
–
QAbstractTexture
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
setShininess
(
shininess
)
¶
shininess
–
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
setSpecular
(
specular
)
¶
specular
–
QColor
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
setTextureScale
(
textureScale
)
¶
textureScale
–
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
shininess
(
)
¶
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
shininessChanged
(
shininess
)
¶
shininess
–
float
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
specular
(
)
¶
QColor
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
specularChanged
(
specular
)
¶
specular
–
QColor
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
textureScale
(
)
¶
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QDiffuseMapMaterial.
textureScaleChanged
(
textureScale
)
¶
textureScale
–
float