MaterialGlossy

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.MaterialGlossy.addTo(obj);


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


Properties

color

Hex

color of the material

MaterialGlossy.color

specular

Hex

specular of the material

MaterialGlossy.specular

emissive

Hex

emissive of the material

MaterialGlossy.emissive

glossiness

Number

glossiness of the material (0-1)

MaterialGlossy.glossiness

wireframe

Boolean

meshes using this material are wireframe

MaterialGlossy.wireframe

alpha

Number

set alpha of the material (0-1)

MaterialGlossy.alpha