- Home /
How to stop shadows from flying?
I've created a sky box that rotates with time and the light intensity also changes to create day and night .. the problem is when the sky box rotates .. the shadows on the walls start flying Here is a screen shot.
If the light source is moving, I would expect the shadows to move too. What object is casting those shadows is not clear though. Is it a cloud object or something? If so, does the cloud move with the skybox and light source too?
Edit: oh wait.. I just saw the shadows for the poles. THATS what you are talking about, ignore the above. In the image, it looks like the sun has set below the levels of the poles' bottoms. Or, that you are on a hill looking down at the poles, and the sun is horiontal. If either of these is the case, it appears, the ground is not casting a shadow.
Answer by Eudaimonium · May 26, 2016 at 11:44 PM
Your "ground" or whatever the bottom of your level is, is one-sided geometry, and therefore "transparent" from the other side.
Make another extra plane and make it face downwards and place it below your world. This will cast correct shadow across the world when light source is below it, or to simulate it being "unlit".