- Home /
Realtime Shadow Glitch [Unity Indie: Directional Light]
In my game, I have a ball that you have to roll around a a level, picking up items as you go along to advance to the next level, but I am having a problem with shadows. Here is an image of what happens, Im not sure why it happens, but it just does.
(Is it the models im using? Im using unity's default cubes. I know I shouldn't have, but the game is too big to go through each level with a cube from a modeling program. Is there any other way of fixing it?)
Can you describe the problem? While a picture normally tells a thousand words, from the screenshot shown I couldn't see exactly what the red arrow was meant to be highlighting?
Answer by BigDakaFa7 · Aug 22, 2014 at 07:32 PM
Are you using a directional light? If yes, its possible that the rotation of the light is causing the shadows to appear in areas that you weren't intending too. Also its hard to tell by the image but your ball might be just tall enough to cast shadows on the next level of stairs so maybe shrink it and change the rotation of your directional light(if your using one).
Sorry if that was not clear enough, here is a picture, with the glitch, and is also used for scale...!
Is this a better image? It doesn't look normal to me anyway... (Im using a bumped specular shader, if that helps...)
Answer by $$anonymous$$ · May 18, 2015 at 03:38 PM
I was using a transparent material... This was when this lighting glitch occurred within unity.