- Home /
How to make terrain trees receive shadow
As far as I know, terrain trees cast shadow, but don't receive shadow. That is, if those trees are imported models, cause I noticed that the trees created with the new Tree Creator do recieve shadow.
Now I was wondering if there is perhaps a way to make my trees (imported meshes) receive shadow ? (just a setting I overlooked perhaps?)
Cause I don't really see why it works for the one but not for the other.
Also, How much more expensive are tree creator trees than the normal ones?
I'm using Unity Pro btw
Answer by larsbertram · Dec 28, 2011 at 10:20 AM
imported trees using the built in soft occlusion leave shaders do not recieve shadows due to the shader. you can have shadows on the bark though using a hacked shader: go to the asset store and find the advanced terrain shaders (free).
lars
Answer by BigBlob · Dec 25, 2011 at 04:46 AM
if you are making tress from the terrain you can just simply generate a light map
but before the light map firstly make a directional light with a rotation of the Z or X axis to 45 degrees. then go to window at the top bar and select light mapping object from your hierchy and select your directional light and click Bake to make a texture that applies automaticly to the terrain
that so do the trick
I've tried lightmapping, but it doesn't give a good result (worse than shadow at all), it just makes the trees in the shadow darker in general, it looks more like the trees are burned rather than in the shade.
Your answer
Follow this Question
Related Questions
How can I make an object cast a shadow only on certain objects? 0 Answers
Tree Creator Problems 1 Answer
Can terrain trees run their own script? 1 Answer
Terrain trees not casting shadow 1 Answer
Lightmapping terrain WITHOUT trees 1 Answer