Methods
# destroy()
When the material is destroyed, it automatically destroys its texture.
A material for the WebGL renderer. Holds a texture, and also determines which drawing pass to use. (For efficiency, the WebGL renderer renders meshes that have the same material at the same time. It also does separate passes for opaque and translucent meshes.)
Note: By default the material is created with a solid white texture. If you want a different image load it from an external asset.
When the material is destroyed, it automatically destroys its texture.