在three.js r71 the ambient
property has been removed from THREE.Material
。three.js R71 - 环境删除,如何配置获得相同的渲染结果?
以前我用ambient
来设置我在网格上使用的材质的正确渲染(光照)效果。现在所有网格的外观都发生了巨大变化。
我怎样才能让我的材料与以前的r71完全一致?
在three.js r71 the ambient
property has been removed from THREE.Material
。three.js R71 - 环境删除,如何配置获得相同的渲染结果?
以前我用ambient
来设置我在网格上使用的材质的正确渲染(光照)效果。现在所有网格的外观都发生了巨大变化。
我怎样才能让我的材料与以前的r71完全一致?
这里是为什么...
根据@WestLangley;我引自his post in the discussion(链接自@pprchsvr):
material.ambient
是材料的环境反射率。对于真实世界的物体,它通常应该匹配材质漫反射的material.color
。 (物体毕竟不知道光子从哪里来。)我们选择简化API,并且硬件
material.ambient
匹配material.color
。因此,material.ambient
已被删除。