Material Class

Module: THREE

Materials describe the appearance of objects. They are defined in a (mostly) renderer-independent way, so you don"t have to rewrite materials if you decide to use a different renderer.

Original documentation available here https:// threejs.org/docs/index.html#Reference/Materials/Material

Item Index

Methods

Methods

dispose

()

Dispose material.

Also disposes all the textures attached to the material.

toJSON

(
  • meta
)
Object

Serialize material to JSON data.

Parameters:

  • meta Object

    Metadata.

Returns:

Object:

JSON data.