class documentation
class MeshLambertMaterial(MeshMaterial): (source)
Known subclasses: fiftyone.core.threed.material_3d.MeshPhongMaterial
Constructor: MeshLambertMaterial(color, emissive_color, emissive_intensity, reflectivity, ...)
Represents a Lambert mesh material.
This material only takes into account diffuse reflections, and ignores specular reflection. This is ideal for materials that reflect light evenly without a glossy or shiny appearance, such as unpolished surfaces.
Parameters | |
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 | color |
Undocumented |
Method | emissive |
Undocumented |
Method | emissive |
Undocumented |
Method | reflectivity |
Undocumented |
Method | refraction |
Undocumented |
Property | color |
Undocumented |
Property | emissive |
Undocumented |
Property | emissive |
Undocumented |
Property | reflectivity |
Undocumented |
Property | 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
:
Method | wireframe |
Undocumented |
Instance Variable | _wireframe |
Undocumented |
Inherited from Material3D
(via MeshMaterial
):
Method | opacity |
Undocumented |
Static Method | _from |
Undocumented |
Instance Variable | _opacity |
Undocumented |
Inherited from BaseValidatedDataClass
(via MeshMaterial
, Material3D
):
Method | __eq__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __setattr__ |
Undocumented |
def __init__(self, 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)
¶
overridden in
fiftyone.core.threed.material_3d.MeshPhongMaterial
Undocumented