PhongMaterial

Overview

PhongMaterial is a class in Aspose.3D FOSS for Python. Inherits from: LambertMaterial.

PhongMaterial.specular_color defines the RGB color of the specular highlight.

This class declares 7 methods for PhongMaterial objects in Python programs. Available methods include: __init__, find_property, 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: ambient_color, diffuse_color, emissive_color, name, properties, reflection_color, and 6 more.

Properties

NameTypeAccessDescription
specular_color'Vector3'Read/WriteGets or sets the specular color.
specular_factorfloatRead/WriteGets or sets the specular factor.
shininessfloatRead/WriteGets or sets the shininess.
reflection_color'Vector3'Read/WriteGets or sets the reflection color.
reflection_factorfloatRead/WriteGets or sets the reflection factor.
emissive_color'Vector3'Read/WriteGets or sets the emissive color.
ambient_color'Vector3'Read/WriteGets or sets the ambient color.
diffuse_color'Vector3'Read/WriteGets or sets the diffuse color.
transparent_color'Vector3'Read/WriteGets or sets the transparent color.
transparencyfloatRead/WriteGets or sets the transparency.
namestrRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
__init__(name: str)Calls init(name) on this PhongMaterial instance.
get_texture(slot_name: str)Not implemented in the FOSS edition — throws at runtime. Calls get_texture(slot_name) on this PhongMaterial instance.
set_texture(slot_name: str, texture)Not implemented in the FOSS edition — throws at runtime. Sets the texture value.
find_property(property_name: str)Calls find_property(property_name) on this PhongMaterial instance.
get_property(property: str)Calls get_property(property) on this PhongMaterial instance.
set_property(property: str, value)Sets the property value.
remove_property(property)Calls remove_property(property) on this PhongMaterial instance.

See Also

 English