Constructor
new PhongMaterial(params)
- Source:
- See:
-
- Further information on the Phong lighting model
Constructor. Build a new material from the given data
Parameters:
Name | Type | Description |
---|---|---|
params |
Object | the parameters of the material:
|
Classes
Members
ambient :number
ambient reflection constant
Type:
- number
color :Color
Color of the material
Type:
- Color
diffuse :number
diffuse reflection constant
Type:
- number
lights :Array.<Light>
lights affecting the material
Type:
- Array.<Light>
reflectivity :Color
Reflectivity of the material
Type:
- Color
shininess :number
shininess reflection constant
Type:
- number
specular :number
specular reflection constant
Type:
- number