Hide menu
Loading...
Searching...
No Matches
BasicMaterial

Defines basic material with assigned color.

Extends

Constructors

new BasicMaterial()

new BasicMaterial(color, opacity?): BasicMaterial

Parameters

color

Color = ...

Material color.

opacity?

number

Material opacity.

Returns

BasicMaterial

Overrides

VisualMaterial.constructor

Properties

color

color: Color

Material color.

Accessors

id

Get Signature

get id(): bigint

Returns object id.

Returns

bigint

Inherited from

VisualMaterial.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

Inherited from

VisualMaterial.opacity

Methods

clone()

clone(): BasicMaterial

Creates new BasicMaterial same as this.

Returns

BasicMaterial

Overrides

VisualMaterial.clone


copy()

copy(other): this

Copies the components of the other material to this.

Parameters

other

BasicMaterial

Copied object.

Returns

this

Overrides

VisualMaterial.copy