Class: QgsUnlitMaterialSettings¶
Basic shading material used for rendering solid color, unlit objects.
Unlit objects are flat shaded, with no interaction with lights in the scene.
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 4.4.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Abstract base class for material settings. |
Methods
Returns the material color. |
|
Sets the material's color. |
Static Methods
Returns a new instance of QgsUnlitMaterialSettings. |
|
Returns |
- class qgis.core.QgsUnlitMaterialSettings[source]¶
Bases:
QgsAbstractMaterialSettings- static create() QgsAbstractMaterialSettings | None[source]¶
Returns a new instance of QgsUnlitMaterialSettings.
- Return type:
- setColor(self, color: QColor | Qt.GlobalColor | int)[source]¶
Sets the material’s
color.See also
- Parameters:
color (Union[QColor, Qt.GlobalColor, int])
- static supportsTechnique(technique: Qgis.MaterialRenderingTechnique) bool[source]¶
Returns
Trueif the specifiedtechniqueis supported by the material.- Parameters:
technique (Qgis.MaterialRenderingTechnique)
- Return type:
bool