2017-05-02 1 views
-3

enter image description here私のshadowMapの問題は何ですか?

私のシャドウマップはあまりにも小さいですが、何が問題なのですか?

+0

あなたはシャドウマップカメラを設置していないように見えます。私はそれが異なる光のために異なっていると信じています。いくつかのコードを投稿するか、使用しているライトを指定してください(方向性があるように見えます)。整形されていない質問を編集してください(コードを添付してください) – pailhead

答えて

0

シャドウマップカメラを正しく設定していない可能性があります。

From the docs:

デフォルトは500

で5左及び底組-5、右、上設定されたOrthographicCamera、0.5でニアクリッピング面とファークリッピング面であります

意味:

yourLight.shadow.camera.left = -500 //(default is -5) 
yourLight.shadow.camera.right = 500 //(default is 5) 
yourLight.shadow.camera.top = -500 //(default is -5) 
yourLight.shadow.camera.bottom = 500 //(default is 5) 

//not sure if this is needed, the docs do not mention it even though they are changing the projection so probably not needed 
yourLight.shadow.camera.updateProjectionMatrix() 
関連する問題