[How to] Very long shadows(several km) with very low resolution at far
Hello,
I have an custom planetary terrain(my own) and the size of it is large. There are many large places that shouldn't be lighted by main light source, and as unity have shadows cascades and distance limit these places are only shadowed when are near to camera. So my question is there any way to render some pseudo shadows (or normal shadows), but with minimal possible resolution at the distance about 10 km. I want a normal shadows not to be influenced by these "planetary" shadows and vice versa. If these effect can not be reached with a traditional shadows, maybe there is some another way? For example create a mini copy of planet in independent layer and rendered shadows project on large planet.. Thank you for any answers.
Answer by Major · Sep 02, 2019 at 07:04 AM
While you can do shadows on that scale using shadow mapping, I think you should look into stencil shadows instead. In the case of terrain that large, they will look better, and they might even perform better. Here's a Wikipedia article on it.