Open arqlz opened 4 years ago
In theory shadows on instanced meshes should work it's hard to tell from the picture what's good or wrong here. What's the actual problem?
Le mer. 22 avr. 2020 à 03:17, Leon notifications@github.com a écrit :
How to handle correctly shadows from a directional light to a 100 instances of the same mesh?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HeapsIO/heaps/issues/801, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZXQBA7S5V3OPZVFX2UDTRNZARFANCNFSM4MNWNGTA .
no luck, the shadow does not adapt to the visible scene, so if you create a very large scene no shadow size (4096, 8192, ect) will help
You can set DirShadowMap.calcShadowBounds to calculate your own shadow bounding volume.
Le sam. 25 avr. 2020 à 04:08, Leon notifications@github.com a écrit :
no luck, the shadow does not adapt to the visible scene, so if you create a very large scene no shadow size (4096, 8192, ect) will help
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HeapsIO/heaps/issues/801#issuecomment-619303405, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZXQAI4OG2DE5CTGVFT63ROJAZXANCNFSM4MNWNGTA .
Ill try it
How to handle correctly shadows from a directional light to a 100 instances of the same mesh?