- Home /
No real-time shadows after porting to Unity 3
Hello there!
We've encountered a strange problem after porting our project from Unity 2.6 Pro to 3 Pro: We can't seem to get the real-time shadows working again with practically all of the standard shaders.
The only shaders that do cast shadows are vertex lit and nature.
It (unfortunately) only concerns our main project and all scenes in it. A test scene with just a cube, a plane and a light does work in any other of our Unity 3 projects but this.
We have already tried the following solutions, without success
- Checked all the light settings
- Checked the camera settings
- Checked the player settings (forward and deferred lighting)
- Checked the quality settings
- Changed the shaders
- Tried importing working scenes and assets into the project
- Tried it on different hardware
Any ideas? Because we are running out of them now ;-)
Is it possible that opening in Unity 3 did somehow damage the standard shaders? Or does it sound more like a project settings problem to you?
Thank you!
Answer by Mike 3 · Oct 05, 2010 at 03:05 PM
You'll need to set the project to use deferred rendering if you want point lights and spotlights to contribute shadows. In 3.0, forward rendering (the rendering technique used) only allows directional lights to cast shadows - and 3.0 is set to use forward rendering by default
Hello $$anonymous$$ike! Thanks for the quick answer. I've tried changing the rendering path to deferred lighting both in the player and the camera settings, without any effect unfortunately. Is there any other place in Unity to set the rendering path other than these two?
I don't think so no (and ugh, just noticed you mentioned you tried deferred lighting). Did you reimport the new versions of all the shaders you're using, especially the nature one?
At the risk of sounding like a newbie ^^, but how do I re-import the default shaders like the diffuse, specular or the diffuse-fast? (most of the materials in the project are using just diffuse shaders)
O$$anonymous$$, downloaded the standard shader package from the unity support page and imported it, and all of a sudden everything seems to work again. Thank you!
Oops, I missed your question there - you'd have just needed to reimport standard and pro standard assets. Anyways, glad it's fixed for you
Your answer
![](https://koobas.hobune.stream/wayback/20220613074800im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Shading Eyes in a Shadow 0 Answers
Stylish shadow / Patterned shadow 1 Answer
GameObject not receiving shadows 0 Answers
Optimise adding shadows in scene using Unity iPhone 2 Answers
Adding transparency to a shadow 1 Answer