PbrMaterial

Overview

PbrMaterial 是Python的Aspose.3D FOSS中的一个类. 继承人: Material.

PbrMaterial.from_material creates a PbrMaterial from an existing Material instance.

这个类提供了在Python程序中与PbrMaterial对象工作的8种方法. 有的方法包括: __init__, find_property, from_material, get_property, get_texture, remove_property, set_property, set_texture. 在安装Python包的Aspose.3D FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: albedo, albedo_texture, emissive_color, emissive_texture, metallic_factor, metallic_roughness,另外7个.

Properties

NameTypeAccessDescription
albedo'Vector3'阅读/写作得到或设置白皮质.
albedo_texture``阅读/写作得到或设置了白质地.
normal_texture``阅读/写作得到或设置正常的纹理.
metallic_factorfloat阅读/写作得到或设置金属因子.
roughness_factorfloat阅读/写作得到或设置粗度因子.
metallic_roughness``阅读/写作得到或设置金属粗度.
occlusion_texture``阅读/写作得到或设置封闭质地.
occlusion_factorfloat阅读/写作得到或设置封闭因子.
emissive_texture``阅读/写作得到或设置发射质地.
emissive_color'Vector3'阅读/写作得到或设置发射颜色.
transparencyfloat阅读/写作获得或设置透明度.
namestr阅读/写作得到或设置名字.
propertiesPropertyCollectionRead得到了房地产.

Methods

SignatureDescription
__init__(name: str, albedo: 'Vector3')
from_material(material: 'Material')'PbrMaterial'从现有的Material实例创建一个 PbrMaterial
get_texture(slot_name: str)在FOSS版本中未实现. 在运行时投放.
set_texture(slot_name: str, texture)在FOSS版本中未实现. 在运行时投放. 设置质量值.
find_property(property_name: str)
get_property(property: str)
set_property(property: str, value)设置物业值.
remove_property(property)

See Also

 中文