- Home /
No shadow on terrain when built
Hi guyz, I have an issue with Unity.
I got a scene with a terrain, trees, grass and the sun. On Scene and Game view, shadows are cast on the terrain and the grass but when I build, the shadow only cast on grass and trees, not on the terrain. I can't bake the terrain because my trees are moving because of the wind, so it's realtime shadow...
could you solve the problem, i have the same issue with unity 5.0.1f1 when export to mac
Answer by Lareln · May 19, 2015 at 07:24 AM
Surprisingly I solved the problem by baking the scene. It seems like baking is necessary even for dynamic shadows
Strange.. Doesn't quite work, but figured out it is an specific scene problem that causes problems to all other scenes.
Answer by Medusa-Zenovka · Jul 14, 2015 at 12:08 PM
Import the latest Standard Assets package, delete the Library folder insider your project and fix all errors, before rebuilding. It fixed the bug for me.
Thanks for the tip. I deleted the Standard Assets from my project and all was fixed. I have no idea why this had any affect on the terrain as the Standard Assets didn't include any terrain shaders... looks like it's one of those inscrutable Unity mysteries. Thanks for the tip!