Base class for all visual materials.
new VisualMaterial(
opacity?):VisualMaterial
number
Material opacity.
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
abstractclone():VisualMaterial
Creates new VisualMaterial with opacity same as this.
copy(
other):this
Copies the opacity of the other material to this.
Copied object.
this