Point Light Shadow ?

Hi …

I’ve a question from the example “shadow demo project”
in that example there’s a house with many rooms , and in every room there is a Point Light

in that example you can active the shadows from the Point Lights . and even if I add a new one will make shadows to objects too.
and even if I move the objects the shadows will move too .

how that’s happened ?, ( The Point Light doesn’t make a shadows )

I tried a lot but I didn’t figure out how they did it :frowning:

thanks …

1 Answer

1

First of all, shadows will only work in Unity Pro, not in Unity Free.

That being said, if you have Pro, you need to do two things:

1. Set your light to cast shadows.

You do this by going into the inspector of your point light, find the ‘Light’ component, change the ‘ShadowType’ value to ‘Soft shadows’ or ‘Hard shadows’.

This will probably give a little warning below saying that ‘only directional lights will have shadows in forward rendering’. We will fix that by … (next step)

[2]. Set your render mode to ‘Deferred lighting’. Do this by going to ‘Edit’, ‘Project Settings’ and then ‘Player’. Under ‘Other Settings’ you’ll find ‘Rendering Path’, which you should set to ‘Deferred Lighting’.

[3] If this still doesn’t do the trick, be sure to set your Shadows to high enough render distance. Do this by going to ‘Edit’, ‘Project Settings’ and then ‘Quality’.

alt text

coooooooool , thank you sooooooo much :)