MaterialCanvas

engine3d material using a 2d canvas, that can be added to multiple meshes and dynamically changed

Methods

Properties


Methods

addTo

add this material to a mesh

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


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

update

update the texture

virtuosity.engine3d.add.material.MaterialCanvas.update();


Properties

wireframe

Boolean

meshes using this material are wireframe

MaterialCanvas.wireframe

alpha

Number

alpha of the material (0-1)

MaterialCanvas.alpha