如果金属度值为0,则envMap照明不起作用

时间:2018-09-04 11:45:28

标签: three.js textures lighting

我正在使用球面投影图像作为网格物体的环境光,但是只有当金属度值设置为1时,它才能正确地照亮网格物体。


金属= 1

enter image description here


金属= 0

此处渲染的光是聚光灯和环境光,但是envMap在这里似乎没有任何作用。

enter image description here

我们真的需要将metalness设置为1才能使envMap正常工作还是我做错了吗?

suzanne.material.metalness = 0;
suzanne.material.visible = true;
suzanne.material.envMap = textures[0];
suzanne.material.envMapIntensity = 1.5;
suzanne.material.envMap.mapping = THREE.SphericalReflectionMapping;

0 个答案:

没有答案