我试图在Threejs中显示一个点云,但结果总是平坦的(不受光影响),并且没有渲染阴影,是否有办法使阴影和阴影更加逼真(类似于Meshlab例如)。或者它是Threejs的限制?
我正在使用THREE.Points对象,使用THREE.PointsMaterial材质。我尝试使用vertexColors选项:THREE.VertexColors,但只显示平面颜色。
points = new THREE.Points(geometry, new THREE.PointsMaterial({
size: 1.2,
vertexColors: THREE.VertexColors
}));
Compare threejs rendering to the left, with meshlab rendering to the right