MaterialMetallic

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


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


Properties

color

Hex

color of the material

MaterialMetallic.color

specular

Hex

specular of the material

MaterialMetallic.specular

emissive

Hex

emissive of the material

MaterialMetallic.emissive

metallic

Number

metallic of the material (0-1)

MaterialMetallic.metallic

roughness

Number

roughness of the material (0-1)

MaterialMetallic.roughness

wireframe

Boolean

meshes using this material are wireframe

MaterialMetallic.wireframe

alpha

Number

set alpha of the material (0-1)

MaterialMetallic.alpha