Point lights can't cast shadows? Is forward rendering something that can be changed?

Hi there,

I'm testing the Pro Version of Unity and I was really disapointed to see that only directional lights can cast real-time shadows.

However, when you select shadows for a point light it says this isn't possible in forward rendering.... is this something that can be changed to allow shadows to be cast from a point/spot light?

Many thanks in advance.

C

You can change to Deferred Rendering via File->Build Settings...->Player Settings. In the Inspector, under "Per-Platform Settings" you can change the Rendering Path to "Deferred Lighting". This is a bit slower but lets you have Shadows for Point- and Spotlights. (i'm not sure, but i think this doesn't work for iPhone...)

Hope this helps!

Supposedly Forward rendering path now also supports shadows from all lights, by adding the fullforwardshadows paramater to the surface parameter (i.e. edit shader to add this).

#pragma surface surf Lambert fullforwardshadows

For some shaders (eg. Bumped), you may get an error about texture limitations. Fix this by preceding the above with:

#pragma target 3.0

There are still reports of problems with this... but that's for other questions.

how would you edit this shader?