THREE.JS does not cast shadows

前端 未结 1 1953
南笙
南笙 2021-01-28 13:19

I was doing a Three js tutorial and this code should cast shadows, but when render shadows does not exists over the plane.

What is wrong on code? I\'m reading documentat

相关标签:
1条回答
  • 2021-01-28 13:48

    three.js r.74 and r.75 have a bug in which shadows are not always rendered in the first call to render(). This bug has been fixed in three.js r.76dev.

    Your work-around is to call renderer.render( scene, camera ) a 2nd time, or to have an animation loop.

    three.js r.75

    0 讨论(0)
提交回复
热议问题