class documentation
class MeshPhongMaterial(MeshLambertMaterial): (source)
Constructor: MeshPhongMaterial(shininess, specular_color, color, emissive_color, ...)
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 | |
shininess | the shininess of the material |
specular | the specular color of the material |
color | the color of the material |
emissive | the emissive color of the material. This is the color emitted by the material itself independent of the light |
emissive | the intensity of the emissive color |
reflectivity | the reflectivity of the material |
refraction | the refraction ratio (IOR) of the material |
wireframe | whether to render the mesh as a wireframe |
opacity | the opacity of the material, in the range [0, 1] |
Method | __init__ |
Undocumented |
Method | as |
Undocumented |
Method | shininess |
Undocumented |
Method | specular |
Undocumented |
Property | shininess |
Undocumented |
Property | specular |
Undocumented |
Instance Variable | _shininess |
Undocumented |
Instance Variable | _specular |
Undocumented |
Inherited from MeshLambertMaterial
:
Method | color |
Undocumented |
Method | emissive |
Undocumented |
Method | emissive |
Undocumented |
Method | reflectivity |
Undocumented |
Method | refraction |
Undocumented |
Instance Variable | _color |
Undocumented |
Instance Variable | _emissive |
Undocumented |
Instance Variable | _emissive |
Undocumented |
Instance Variable | _reflectivity |
Undocumented |
Instance Variable | _refraction |
Undocumented |
Inherited from MeshMaterial
(via MeshLambertMaterial
):
Method | wireframe |
Undocumented |
Instance Variable | _wireframe |
Undocumented |
Inherited from Material3D
(via MeshLambertMaterial
, MeshMaterial
):
Method | opacity |
Undocumented |
Static Method | _from |
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)
¶
Undocumented