Constructor
new PhongWrapMaterial(material, params)
Constructor.
Parameters:
Name | Type | Description |
---|---|---|
material |
Material | the material defining the base color |
params |
Object | the parameters of the Phong layer:
|
Classes
Members
ambient :number
ambient reflection constant
Type:
- number
diffuse :number
diffuse reflection constant
Type:
- number
lights :Array.<Light>
lights affecting the material
Type:
- Array.<Light>
material :Material
material defining the base color
Type:
reflectivity :Color
Reflectivity of the material
Type:
- Color
shininess :number
shininess reflection constant
Type:
- number
specular :number
specular reflection constant
Type:
- number
Methods
onAdd(scene)
Additional actions to perform when the object is added to the scene. Propagate the call.
Parameters:
Name | Type | Description |
---|---|---|
scene |
Scene | the scene to which the object is added. |
setId(scene)
Set the ID of the shape. Propagate the call.
Parameters:
Name | Type | Description |
---|---|---|
scene |
Scene | the scene to which the object is added. |