MaterialBasic

engine3d material that can be added to multiple meshes and dynamically changed

Methods

Properties


Methods

addTo

add this material to a mesh

virtuosity.engine3d.add.material.MaterialBasic.addTo(obj);


Parameter Type Description
obj any engine3d mesh object to add the material to


Properties

color

Hex

color of the material

MaterialBasic.color

specular

Hex

specular of the material

MaterialBasic.specular

emissive

Hex

emissive of the material

MaterialBasic.emissive

wireframe

Boolean

meshes using this material are wireframe

MaterialBasic.wireframe

alpha

Number

alpha of the material (0-1)

MaterialBasic.alpha