在我的项目中,我添加了几个模型和其他几何对象,我可以移动相机在场景中进行扫描,但是当我添加如下灯光时,模型并没有按原样显示。我应该如何添加适当的灯光以适应场景中的模型。
var ambientLight = new THREE.AmbientLight(0x222222);
scene.add(ambientLight);
// add directional light source
var directionalLight = new THREE.DirectionalLight(0xffffff,2);
directionalLight.position.set(1, 1, 1).normalize();
scene.add(directionalLight);
var directionalLight1 = new THREE.DirectionalLight(0xffffff);
directionalLight1.position.set(-1, -1, -1).normalize();
scene.add(directionalLight1);