new PhongMaterial(
ambientColor
,diffuseColor
,specularColor
,emissionColor
,shininess
?,opacity
?):PhongMaterial
Color
= ...
Ambient color.
Color
= ...
Diffuse color.
Color
= ...
Specular color.
Color
= ...
Emissive color.
number
Shininess value.
number
Material opacity.
ambientColor:
Color
Ambient color.
diffuseColor:
Color
Diffuse color.
emissionColor:
Color
Emissive color.
specularColor:
Color
Specular color.
get id():
bigint
Returns object id.
bigint
get opacity():
number
Returns material opacity.
number
set opacity(
opacity
):void
Sets material opacity. Value should be in [0, 1]
range.
number
Opacity.
void
get shininess():
number
Returns material shininess.
number
set shininess(
shininess
):void
Sets material shininess. Value should be in [0, 128]
range.
number
Shininess.
void
clone():
PhongMaterial
Creates new PhongMaterial
same as this
.
copy(
other
):this
Copies the components of the other
material to this
.
Copied object.
this