Spotlight casting light on trees outside its area

I noticed that if I use the ‘place trees’ function of the Terrain in Unity Free, the trees will behave in a weird way when subjected to a spotlight. Basically trees outside the cone of the light but near it will be illuminated.

But if I try to import a tree as a game object it will not have this behavior. Do I have to import every tree as a separate game object or is there some other way to fix the problem?

2 Answers

2

Nevermind, I got it. The problem was the shader. I just set it on Bumped Diffuse and now they work properly.

I try this, but it breaks the billboard-rendered trees. My billboarded trees are all white like this: http://answers.unity3d.com/questions/289266/billboard-trees-glow-white-in-dark-scene.html How did you fix this secondary issue?

I got it to work on leaves (which had a transparent map) when I used Transparent/Cutout/Bumber Diffuse. Just FYI