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

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.

Methods

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)

See Also