VglMaterial
Abstract mixin component for materials, corresponding THREE.Material.
props
-
namename (required)Name of the material.
-
sidestring (optional)default: 'front'Defines which side of faces will be rendered. front, back or double.
-
vertex-colorsboolean (optional)Defines whether vertex coloring is used. Other options are ‘vertex’ and ‘face’.
computed properties
-
instThe THREE.Material instance.
methods
-
update()Emit an event in
materialsnamespace. Call this method after editing instance’s properties.