pygfx.materials.MeshPhongMaterial¶
- class pygfx.materials.MeshPhongMaterial(shininess=30, emissive='#000', specular='#494949', **kwargs)¶
Bases:
MeshBasicMaterial
Phong mesh material.
A material affected by light, diffuse and with specular highlights. This material uses the Blinn-Phong reflectance model. If the specular color is turned off, Lambertian shading is obtained.
- Parameters:
shininess (int) – How shiny the specular highlight is; a higher value gives a sharper highlight.
emissive (Color) – The emissive (light) color of the mesh. This color is added to the final color and is unaffected by lighting. The alpha channel of this color is ignored.
specular (Color) – The specular (highlight) color of the mesh.
kwargs (Any) – Additional kwargs will be passed to the
base class
.
- property emissive¶
The emissive (light) color of the mesh. This color is added to the final color and is unaffected by lighting. The alpha channel of this color is ignored.
- property specular¶
The specular (highlight) color of the mesh.
- property shininess¶
How shiny the specular highlight is; a higher value gives a sharper highlight. Default is 30.