Qt3DExtras.QMetalRoughMaterial¶
The
QMetalRoughMaterial
provides a default implementation of PBR lighting. More…
Synopsis¶
Functions¶
def
ambientOcclusion
()def
baseColor
()def
metalness
()def
normal
()def
roughness
()def
textureScale
()
Slots¶
def
setAmbientOcclusion
(ambientOcclusion)def
setBaseColor
(baseColor)def
setMetalness
(metalness)def
setNormal
(normal)def
setRoughness
(roughness)def
setTextureScale
(textureScale)
Signals¶
def
ambientOcclusionChanged
(ambientOcclusion)def
baseColorChanged
(baseColor)def
metalnessChanged
(metalness)def
normalChanged
(normal)def
roughnessChanged
(roughness)def
textureScaleChanged
(textureScale)
Detailed Description¶
This material uses an effect with a single render pass approach and performs per fragment lighting. Techniques are provided for OpenGL 3 and OpenGL ES 3.
-
class
PySide2.Qt3DExtras.Qt3DExtras.
QMetalRoughMaterial
([parent=None])¶ - param parent
QNode
Constructs a new
QMetalRoughMaterial
instance with parent objectparent
.
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
ambientOcclusion
()¶ - Return type
object
See also
setAmbientOcclusion()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
ambientOcclusionChanged
(ambientOcclusion)¶ - Parameters
ambientOcclusion – object
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
baseColor
()¶ - Return type
object
See also
setBaseColor()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
baseColorChanged
(baseColor)¶ - Parameters
baseColor – object
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
metalness
()¶ - Return type
object
See also
setMetalness()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
metalnessChanged
(metalness)¶ - Parameters
metalness – object
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
normal
()¶ - Return type
object
See also
setNormal()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
normalChanged
(normal)¶ - Parameters
normal – object
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
roughness
()¶ - Return type
object
See also
setRoughness()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
roughnessChanged
(roughness)¶ - Parameters
roughness – object
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
setAmbientOcclusion
(ambientOcclusion)¶ - Parameters
ambientOcclusion – object
See also
ambientOcclusion()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
setBaseColor
(baseColor)¶ - Parameters
baseColor – object
See also
baseColor()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
setMetalness
(metalness)¶ - Parameters
metalness – object
See also
metalness()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
setNormal
(normal)¶ - Parameters
normal – object
See also
normal()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
setRoughness
(roughness)¶ - Parameters
roughness – object
See also
roughness()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
setTextureScale
(textureScale)¶ - Parameters
textureScale –
float
See also
textureScale()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
textureScale
()¶ - Return type
float
See also
setTextureScale()
-
PySide2.Qt3DExtras.Qt3DExtras.QMetalRoughMaterial.
textureScaleChanged
(textureScale)¶ - Parameters
textureScale –
float
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.