Three.js照明问题
你好!我试图在Three.js中使用一些不同的光源设置一个场景,但"Floor"只对AmbientLight(在Three.js场景中移除)起作用,并且应该与搅拌器视图中的照明大致相同.我已经验证了模型上的法线指向外,材质的默认搅拌器材质设置为THREE.MeshLambertMaterial.
灯光设置:
选择 | 换行 | 行号
- const spotLight = new THREE.SpotLight('#ffffff');
- spotLight.position.set(0, 10, 0);
- spotLight.angle = Math.PI / 4.5;
- spotLight.intensity = spotLightIntensity / 2;
- spotLight.penumbra = 0.5;
- this.scene.add(spotLight);
- const spotLight2 = new THREE.SpotLight('#ffffff');
- spotLight2.position.set(0, 5, 0);
- spotLight2.angle = Math.PI / 7;
- spotLight2.intensity = 1;
- spotLight2.penumbra = 0.5;1505d2299138ef64a8fa667388a2e36419f
- this.scene.add(spotLight2);
请说明是否需要更多信息.
有谁知道为什么吗?
Three.js场景:
搅拌机3D视图:
默认材质设置: