class documentation

Represents a Phong mesh material.

This material takes into account specular reflection. This is ideal for materials that reflect light with a glossy or shiny appearance, such as polished surfaces.

Parameters
shininessthe shininess of the material
specular_colorthe specular color of the material
colorthe color of the material
emissive_colorthe emissive color of the material. This is the color emitted by the material itself independent of the light
emissive_intensitythe intensity of the emissive color
reflectivitythe reflectivity of the material
refraction_ratiothe refraction ratio (IOR) of the material
wireframewhether to render the mesh as a wireframe
opacitythe opacity of the material, in the range [0, 1]
Method __init__ Undocumented
Method as_dict Undocumented
Method shininess.setter Undocumented
Method specular_color.setter Undocumented
Property shininess Undocumented
Property specular_color Undocumented
Instance Variable _shininess Undocumented
Instance Variable _specular_color Undocumented

Inherited from MeshLambertMaterial:

Method color.setter Undocumented
Method emissive_color.setter Undocumented
Method emissive_intensity.setter Undocumented
Method reflectivity.setter Undocumented
Method refraction_ratio.setter Undocumented
Instance Variable _color Undocumented
Instance Variable _emissive_color Undocumented
Instance Variable _emissive_intensity Undocumented
Instance Variable _reflectivity Undocumented
Instance Variable _refraction_ratio Undocumented

Inherited from MeshMaterial (via MeshLambertMaterial):

Method wireframe.setter Undocumented
Instance Variable _wireframe Undocumented

Inherited from Material3D (via MeshLambertMaterial, MeshMaterial):

Method opacity.setter Undocumented
Static Method _from_dict Undocumented
Instance Variable _opacity Undocumented

Inherited from BaseValidatedDataClass (via MeshLambertMaterial, MeshMaterial, Material3D):

Method __eq__ Undocumented
Method __repr__ Undocumented
Method __setattr__ Undocumented
def __init__(self, shininess: float = 30.0, specular_color: str = COLOR_DEFAULT_DARK_GRAY, color: str = COLOR_DEFAULT_GRAY, emissive_color: str = COLOR_DEFAULT_BLACK, emissive_intensity: float = 0.0, reflectivity: float = 1.0, refraction_ratio: float = 0.98, wireframe: bool = False, opacity: float = 1.0): (source)
@shininess.setter
def shininess(self, value: float): (source)

Undocumented

@specular_color.setter
def specular_color(self, value: str): (source)

Undocumented

Undocumented

@property
specular_color: str = (source)

Undocumented

_shininess = (source)

Undocumented

_specular_color = (source)

Undocumented