Strange behaviour of shadowing in ThreeJS

后端 未结 1 429
名媛妹妹
名媛妹妹 2020-12-22 08:10

so I have a threeJS scene, and I have some spheres (multimaterial) added. I have also a directional light added :

this.light = new THREE.DirectionalLight(          


        
相关标签:
1条回答
  • 2020-12-22 09:10

    Based on your comments, what you are seeing is self-shadowing artifacts.

    You need to adjust the shadowBias ( now called shadow.bias ) parameter.

    Varying the shadow bias results in a trade-off between "peter-panning" (too much positive bias) and self-shadowing artifacts (too much negative bias).

    three.js r.73

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