Home Reference Source Repository
import MaterialStore from 'awv3/src/misc/materialstore.js'
public class | source

MaterialStore

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Method Summary

Public Methods
public

restore(material: THREE.Material): Tween

Restores the original properties of a material from the map

public

store(material: THREE.Material): Tween

Stores properties of a material into a map and creates an animation

Public Constructors

public constructor() source

Public Members

public storedPropertiesMap: * source

Public Methods

public restore(material: THREE.Material): Tween source

Restores the original properties of a material from the map

Params:

NameTypeAttributeDescription
material THREE.Material

material that was stored earlier

Return:

Tween

animation - not started restoration animation

public store(material: THREE.Material): Tween source

Stores properties of a material into a map and creates an animation

Params:

NameTypeAttributeDescription
material THREE.Material

Return:

Tween

animation - not started animation to the given properties