Base class for all visual materials.
new VisualMaterial(
opacity?):VisualMaterial
Creates a visual material.
If opacity is provided, it is clamped to the [0, 1] range. Otherwise, the default opacity is 1.
number
Material opacity.
VisualMaterial
get id():
bigint
Returns the unique identifier of the object.
bigint
get opacity():
number
Returns the material opacity.
number
set opacity(
opacity):void
Sets the material opacity. The value is clamped to the [0, 1] range.
number
Material opacity.
void
abstractclone():VisualMaterial
Creates a new material with the same properties as this material.
VisualMaterial
copy(
other):this
Copies the properties of another visual material to this material.
VisualMaterial
Source material.
this