Defines basic material with assigned color.
new BasicMaterial(
color,opacity?):BasicMaterial
Color = ...
Material color.
number
Material opacity.
color:
Color
Material 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
clone():
BasicMaterial
Creates new BasicMaterial same as this.
copy(
other):this
Copies the components of the other material to this.
Copied object.
this