O'Reilly logo

Game Development with Three.js by Isaac Sukin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Materials

Materials are instances of THREE.Material that define how objects appear. There are several common material subclasses:

Constructor

Explanation

MeshBasicMaterial

Materials

It is not affected by lighting (a characteristic called unlit), so this is usually used to display a solid color or a wireframe. Two adjacent, same-colored, unlit surfaces are difficult to tell apart.

MeshNormalMaterial

Materials

The red/green/blue values of the colors displayed by this material are based on the magnitude of the x/y/z values of the faces' normal vectors. (A normal ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required