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.
List of all members, including inherited members
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.core.QgsMetalRoughMaterialSettings[source]¶
Bases:
QgsAbstractMaterialSettings- static create() QgsAbstractMaterialSettings | None[source]¶
Returns a new instance of QgsMetalRoughMaterialSettings.
- Return type:
- setBaseColor(self, color: QColor | Qt.GlobalColor | int)[source]¶
Sets the base material
color.See also
- Parameters:
color (Union[QColor, Qt.GlobalColor, int])
- 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: Qgis.MaterialRenderingTechnique) bool[source]¶
Returns
Trueif the specifiedtechniqueis supported by the metal rough material.- Parameters:
technique (Qgis.MaterialRenderingTechnique)
- Return type:
bool