PbrMaterial
Overview
PbrMaterial is a class in Aspose.3D FOSS for Python.
Inherits from: Material.
PbrMaterial.from_material creates a PbrMaterial from an existing Material instance.
This class provides 8 methods for working with PbrMaterial objects in Python programs.
Available methods include: __init__, find_property, from_material, get_property, get_texture, remove_property, set_property, set_texture.
All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: albedo, albedo_texture, emissive_color, emissive_texture, metallic_factor, metallic_roughness, and 7 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
albedo | 'Vector3' | Read/Write | Gets or sets the albedo. |
albedo_texture | `` | Read/Write | Gets or sets the albedo texture. |
normal_texture | `` | Read/Write | Gets or sets the normal texture. |
metallic_factor | float | Read/Write | Gets or sets the metallic factor. |
roughness_factor | float | Read/Write | Gets or sets the roughness factor. |
metallic_roughness | `` | Read/Write | Gets or sets the metallic roughness. |
occlusion_texture | `` | Read/Write | Gets or sets the occlusion texture. |
occlusion_factor | float | Read/Write | Gets or sets the occlusion factor. |
emissive_texture | `` | Read/Write | Gets or sets the emissive texture. |
emissive_color | 'Vector3' | Read/Write | Gets or sets the emissive color. |
transparency | float | Read/Write | Gets or sets the transparency. |
name | str | Read/Write | Gets or sets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
__init__(name: str, albedo: 'Vector3') | |
from_material(material: 'Material') → 'PbrMaterial' | Creates a PbrMaterial from an existing Material instance |
get_texture(slot_name: str) | Not implemented in the FOSS edition — throws at runtime. |
set_texture(slot_name: str, texture) | Not implemented in the FOSS edition — throws at runtime. Sets the texture value. |
find_property(property_name: str) | |
get_property(property: str) | |
set_property(property: str, value) | Sets the property value. |
remove_property(property) |