Overlapping PointLight Shadows using MeshLambertMaterial

给你一囗甜甜゛ 提交于 2019-12-02 03:35:57

You are having problems with shadows when you have multiple light sources and the material receiving the shadow is MeshLambertMaterial.

This is a limitation of MeshLambertMaterial due to the fact that it uses Gouraud shading -- the illumination calculation is computed in the vertex shader. Since shadows are computed in the fragment shader, there is no way to identify the light sources at that point.

For proper shadows, use MeshPhongMaterial or MeshStandardMaterial, for example.

three.js r.88

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!