Link Search Menu Expand Document

You are browsing the documentation for v0.x.
Visit here for the newest version.

VglMaterial

Abstract mixin component for materials, corresponding THREE.Material.

props

  • name name (required)

    Name of the material.

  • side string (optional) default: 'front'

    Defines which side of faces will be rendered. front, back or double.

  • vertex-colors boolean (optional)

    Defines whether vertex coloring is used. Other options are ‘vertex’ and ‘face’.

computed properties

  • inst

    The THREE.Material instance.

methods

  • update()

    Emit an event in materials namespace. Call this method after editing instance’s properties.