Three.js照明问题

你好!我试图在Three.js中使用一些不同的光源设置一个场景,但"Floor"只对AmbientLight(在Three.js场景中移除)起作用,并且应该与搅拌器视图中的照明大致相同.我已经验证了模型上的法线指向外,材质的默认搅拌器材质设置为THREE.MeshLambertMaterial.
灯光设置:

选择 | 换行 | 行号
  1. const spotLight = new THREE.SpotLight('#ffffff');
  2. spotLight.position.set(0, 10, 0);
  3. spotLight.angle = Math.PI / 4.5;
  4. spotLight.intensity = spotLightIntensity / 2;
  5. spotLight.penumbra = 0.5;
  6. this.scene.add(spotLight);
  7. const spotLight2 = new THREE.SpotLight('#ffffff');
  8. spotLight2.position.set(0, 5, 0);
  9. spotLight2.angle = Math.PI / 7;
  10. spotLight2.intensity = 1;
  11. spotLight2.penumbra = 0.5;1505d2299138ef64a8fa667388a2e36419f
  12. this.scene.add(spotLight2);

请说明是否需要更多信息.
有谁知道为什么吗?
Three.js场景:

搅拌机3D视图:

默认材质设置:

标签: Javascript

添加新评论