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

NameTypeAccessDescription
albedo'Vector3'Read/WriteGets or sets the albedo.
albedo_texture``Read/WriteGets or sets the albedo texture.
normal_texture``Read/WriteGets or sets the normal texture.
metallic_factorfloatRead/WriteGets or sets the metallic factor.
roughness_factorfloatRead/WriteGets or sets the roughness factor.
metallic_roughness``Read/WriteGets or sets the metallic roughness.
occlusion_texture``Read/WriteGets or sets the occlusion texture.
occlusion_factorfloatRead/WriteGets or sets the occlusion factor.
emissive_texture``Read/WriteGets or sets the emissive texture.
emissive_color'Vector3'Read/WriteGets or sets the emissive color.
transparencyfloatRead/WriteGets or sets the transparency.
namestrRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

méthodes

SignatureDescription
__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
 Français