Class: QgsMetalRoughTexturedMaterialSettings¶
A PBR metal rough shading material used for rendering with support for image texture maps.
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.2.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Abstract base class for material settings. |
Methods
Returns the path to the ambient occlusion texture map. |
|
Returns the path to the base color texture map. |
|
Returns the emission factor, which dictates the strength of the emission effect. |
|
Returns the path to the emission/luminosity texture map. |
|
Returns the path to the metalness texture map. |
|
Returns the path to the normal texture map. |
|
Returns the path to the roughness texture map. |
|
Sets the path to the ambient occlusion texture map. |
|
Sets the path to the base color texture map. |
|
Sets the emission factor, which dictates the strength of the emission effect. |
|
Sets the path to the emission/luminosity texture map. |
|
Sets the path to the metalness texture map. |
|
Sets the path to the normal texture map. |
|
Sets the path to the roughness texture map. |
|
Sets the texture rotation, in degrees. |
|
Sets the texture scale. |
|
Returns the texture rotation, in degrees. |
|
Returns the texture scale. |
Static Methods
Returns a new instance of QgsMetalRoughTexturedMaterialSettings. |
|
Returns |
- class qgis.core.QgsMetalRoughTexturedMaterialSettings[source]¶
Bases:
QgsAbstractMaterialSettings- ambientOcclusionTexturePath(self) str[source]¶
Returns the path to the ambient occlusion texture map.
See also
- Return type:
str
- baseColorTexturePath(self) str[source]¶
Returns the path to the base color texture map.
See also
- Return type:
str
- static create() QgsAbstractMaterialSettings | None[source]¶
Returns a new instance of QgsMetalRoughTexturedMaterialSettings.
- Return type:
- emissionFactor(self) float[source]¶
Returns the emission factor, which dictates the strength of the emission effect.
A value of 1.0 indicates that the emission texture values should be used directly. Larger values result in more light emission.
See also
See also
- Return type:
float
- emissionTexturePath(self) str[source]¶
Returns the path to the emission/luminosity texture map.
See also
See also
- Return type:
str
- metalnessTexturePath(self) str[source]¶
Returns the path to the metalness texture map.
See also
- Return type:
str
- normalTexturePath(self) str[source]¶
Returns the path to the normal texture map.
See also
- Return type:
str
- roughnessTexturePath(self) str[source]¶
Returns the path to the roughness texture map.
See also
- Return type:
str
- setAmbientOcclusionTexturePath(self, path: str | None)[source]¶
Sets the
pathto the ambient occlusion texture map.See also
- Parameters:
path (Optional[str])
- setBaseColorTexturePath(self, path: str | None)[source]¶
Sets the
pathto the base color texture map.See also
- Parameters:
path (Optional[str])
- setEmissionFactor(self, factor: float)[source]¶
Sets the emission
factor, which dictates the strength of the emission effect.A value of 1.0 indicates that the emission texture values should be used directly. Larger values result in more light emission.
See also
See also
- Parameters:
factor (float)
- setEmissionTexturePath(self, path: str | None)[source]¶
Sets the
pathto the emission/luminosity texture map.See also
See also
- Parameters:
path (Optional[str])
- setMetalnessTexturePath(self, path: str | None)[source]¶
Sets the
pathto the metalness texture map.See also
- Parameters:
path (Optional[str])
- setNormalTexturePath(self, path: str | None)[source]¶
Sets the
pathto the normal texture map.See also
- Parameters:
path (Optional[str])
- setRoughnessTexturePath(self, path: str | None)[source]¶
Sets the
pathto the roughness texture map.See also
- Parameters:
path (Optional[str])
- setTextureRotation(self, rotation: float)[source]¶
Sets the texture
rotation, in degrees.See also
- Parameters:
rotation (float)
- setTextureScale(self, scale: float)[source]¶
Sets the texture
scale.The texture scale changes the size of the displayed texture in the 3D scene. If the texture scale is less than 1, the texture will be stretched.
See also
- Parameters:
scale (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
- textureRotation(self) float[source]¶
Returns the texture rotation, in degrees.
See also
- Return type:
float