PhongMaterial

PhongMaterial

Material for objects in the scene

Constructor

new PhongMaterial(params)

Source:
See:

Constructor. Build a new material from the given data

Parameters:
Name Type Description
params Object

the parameters of the material:

  • {Color} color - the color of the material
  • {number} ambient - the ambient reflection constant
  • {number} diffuse - the diffuse reflection constant
  • {number} specular - the specular reflection constant
  • {number} shininess - the shininess reflection constant
  • {Light[]} lights - light affecting the material

Classes

PhongMaterial

Members

ambient :number

Source:

ambient reflection constant

Type:
  • number

color :Color

Source:

Color of the material

Type:
  • Color

diffuse :number

Source:

diffuse reflection constant

Type:
  • number

lights :Array.<Light>

Source:

lights affecting the material

Type:

reflectivity :Color

Source:

Reflectivity of the material

Type:
  • Color

shininess :number

Source:

shininess reflection constant

Type:
  • number

specular :number

Source:

specular reflection constant

Type:
  • number