"materials":[{//这样就不会像塑料一样反光
"shading":"lambert"
//贴图记得复制过去
"mapDiffuse":"Grass0130_1_350.jpg",
}],
web端
//mountain
varloader= newTHREE.JSONLoader();
loader.load('models/zhenjiang/mountain.json',function(geometry,materials) {
mesh= newTHREE.Mesh(geometry,newTHREE.MeshFaceMaterial(materials) );
mesh.position.set(200,2,100);
mesh.scale.set(50,50,50);
mesh.matrixAutoUpdate= false;
mesh.updateMatrix();
mesh.receiveShadow= true;
mesh.castShadow= true;
scene.add(mesh);
} );