Class: QgsMetalRoughMaterialSettings¶
A PBR metal rough shading material used for rendering.
Warning
This is not considered stable API, and may change in future QGIS releases. It is exposed to the Python bindings as a tech preview only.
Added in version 3.36.
Class Hierarchy¶
Base classes¶
Abstract base class for material settings.  | 
Methods
Returns the base material color.  | 
|
Returns the material's metalness.  | 
|
Returns the material's roughness.  | 
|
Sets the base material color.  | 
|
Returns the material's metalness.  | 
|
Returns the material's roughness.  | 
|
Static Methods
Returns a new instance of QgsMetalRoughMaterialSettings.  | 
|
Returns   | 
- class qgis._3d.QgsMetalRoughMaterialSettings[source]¶
 Bases:
QgsAbstractMaterialSettings- static create() QgsAbstractMaterialSettings | None[source]¶
 Returns a new instance of QgsMetalRoughMaterialSettings.
- Return type:
 Optional[QgsAbstractMaterialSettings]
- setBaseColor(self, color: QColor | Qt.GlobalColor)[source]¶
 Sets the base material
color.See also
- Parameters:
 color (Union[QColor, Qt.GlobalColor])
- setMetalness(self, metalness: float)[source]¶
 Returns the material’s
metalness.See also
- Parameters:
 metalness (float)
- setRoughness(self, roughness: float)[source]¶
 Returns the material’s
roughness.See also
- Parameters:
 roughness (float)
- static supportsTechnique(technique: QgsMaterialSettingsRenderingTechnique) bool[source]¶
 Returns
Trueif the specifiedtechniqueis supported by the metal rough material.- Parameters:
 technique (QgsMaterialSettingsRenderingTechnique)
- Return type:
 bool
- toExportParameters(self) Dict[str, str]¶
 - Return type:
 Dict[str, str]