PbrMaterial
Vue de l’ensemble
‘PbrMaterial’ est une classe dans Aspose.3D FOSS pour Python.
PbrMaterial.fr_material crée un PbMateriel à partir d’une instance matérielle existante.
Cette classe fournit 8 méthodes pour travailler avec des objets PbrMaterial dans les programmes Python. Les méthodologies disponibles comprennent: __init__, find_property , from_material ، get_pourriture ; ‘remove_prête; set_priétéetsets_texture. Tous les membres publics sont accessibles à toute application Pythone après l'installation de l’Aspose.3D FOSS pour le package PyThone. Properties : albedooualbe_texture : 'emissive_color ?, ‘missiv_techture’, ‘metallic_factor` !
Propriétés
| 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. |
méthodes
| 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) |
Voir aussi
- Aspose.3D - référence API d’entreprise