三个js平滑阴影出现平坦

时间:2020-05-07 07:04:10

标签: javascript three.js stl-format

我正在加载.stl文件,在不触摸MeshStandardMaterial属性的情况下应用flatShading,因为默认情况下为false

enter image description here

对我来说,结果看起来非常平坦。如果我尝试设置flatShading: true,结果将是相同的。

我已经尽我所能,但是没有任何想法-任何建议都将受到欢迎,谢谢。

geometry.computeVertexNormals();
geometry.computeBoundingBox();
geometry.computeBoundingSphere();
geometry.normalizeNormals();

0 个答案:

没有答案
相关问题