March 2015
Beginner to intermediate
422 pages
9h 9m
English
In this section, we'll look at a few simple materials: MeshBasicMaterial, MeshDepthMaterial, MeshNormalMaterial, and MeshFaceMaterial. We start with MeshBasicMaterial.
Before we look into the properties of these materials, here's a quick note on how you can pass in properties to configure the materials. There are two options:
var material = new THREE.MeshBasicMaterial(
{
color: 0xff0000, name: 'material-1', opacity: 0.5, transparency: true, ...
});var material = new THREE.MeshBasicMaterial(); material.color = new THREE.Color(0xff0000); material.name ...
Read now
Unlock full access