Hide menu
Loading...
Searching...
No Matches
VisualMaterial

Base class for all visual materials.

Extends

Extended by

Constructors

new VisualMaterial()

new VisualMaterial(opacity?): VisualMaterial

Parameters

opacity?

number

Material opacity.

Returns

VisualMaterial

Overrides

BaseObject.constructor

Accessors

id

Get Signature

get id(): bigint

Returns object id.

Returns

bigint

Inherited from

BaseObject.id


opacity

Get Signature

get opacity(): number

Returns material opacity.

Returns

number

Set Signature

set opacity(opacity): void

Sets material opacity. Value should be in [0, 1] range.

Parameters

opacity

number

Opacity.

Returns

void

Methods

clone()

abstract clone(): VisualMaterial

Creates new VisualMaterial with opacity same as this.

Returns

VisualMaterial


copy()

copy(other): this

Copies the opacity of the other material to this.

Parameters

other

VisualMaterial

Copied object.

Returns

this