JustPaste.it

ThreeJS Material - Mesh - TAE

Three.js materials define 3D objects, including color, texture, and how they interact with light. Examples include MeshBasicMaterial (unaffected by light), MeshLambertMaterial, MeshPhongMaterial (shiny), and MeshStandardMaterial (realistic lighting).

ThreeJS Material

MeshBasicMaterial

A material for drawing geometries in a simple shaded (flat or wireframe) way.

This material is not affected by lights.

Constructor

MeshBasicMaterial( parameters : Object )

parameters - (optional) an object with one or more properties defining the material's appearance. Any property of the material (including any property inherited from Material) can be passed in here.

The exception is the property color, which can be passed in as a hexadecimal string and is 0xffffff (white) by default. Color.set( color ) is called internally. Read More...

 

 

threejsmaterialmesh.png