ThreeJS shadow not rendering

后端 未结 1 2043
孤城傲影
孤城傲影 2021-01-02 09:34

I\'ve looked through a number of other S.O. questions, followed all of the advice, but I\'m still clueless as to why I can\'t get shadows to render on this very basic scene.

相关标签:
1条回答
  • 2021-01-02 09:56

    You need to set

    cube.castShadow = true;
    

    and make sure the shadow camera far plane reaches the cube.

    Fiddle: http://jsfiddle.net/4Txgp/13/

    three.js r.58

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