我对闪电和平面几何有疑问。在使用某些高度数据创建平面几何图形时,在我看来,定向光不会影响网格。整体颜色还是一样的:(
var geometry: THREE.PlaneGeometry
= new THREE.PlaneGeometry(1000, 1000, 199, 199);
for (var i = 0, l = geometry.vertices.length; i < l; i++)
geometry.vertices[i].z = this._heightmap.data[i];
var mesh = new THREE.Mesh(geometry,
new THREE.MeshLambertMaterial({ color: 0x1AAD2B }));
mesh.applyMatrix(new THREE.Matrix4().makeRotationX(- Math.PI / 2));
this.screen.get("Scene").add(mesh);
var light = new THREE.DirectionalLight(0xffffff, 1);
light.position.set(0.8, 0.5, 1);
light.position.normalize();
this.screen.get("Scene").add(light);
http://s14.directupload.net/images/130703/jsfx9tr3.png
我必须创建自己的着色器还是我需要执行的选项问题?
亲切的问候基督徒