开始先说说MeshLambertMaterial和MeshBasicMaterial。
MeshBasicMaterial:A material for drawing geometries in a simple shaded (flat or wireframe) way.
MeshLambertMaterial:A material for non-shiny (Lambertian) surfaces, evaluated per vertex.
MeshLambertMaterial比MeshBasicMaterial多了一些属性,比如ambient、emissive
function createBall() {
// Do not change the color itself, change the material and use the ambient and diffuse components.
//var material = new THREE.MeshBasicMaterial( { color: 0xFFFF00, shading: THREE.FlatShading ,wireframeLinecap:"round",wireframe:true} );
var material=new THREE.MeshLambertMaterial({color:0x800000,ambient:0x000080,emissive:0x000000,shading: THREE.FlatShading});
var sphere = new THREE.Mesh( new THREE.SphereGeometry( 400, 64, 32 ), material );
return sphere;
}