- Home /
Lightmap with bump/specular problem Unity 3 Pro
I can use bump and specular in normal shaders, but when i try to use it in lightmap shader simply doesnot work. The lightmap works, but the bump and specular stop working. What should i do?
Did you manage to get this to work? I've just hit exactly the same problem.
Answer by taoa · Mar 08, 2011 at 04:06 PM
I recently answered the same question. Here was my answer:
Lightmapped objects bypass their Normal information upon rendering because all lighting information is contained in the lightmaps. Lightmaps in Unity are made to display objects in the distance (this distance is the same as the shadow distance you can find in Quality settings), that's why small details such as those you find in normal maps aren't rendered with lightmapped objects because they are static. Normal-mapped objects are dynamic.
You can have your objects Normal-mapped again if you increase the shadow distance in the Quality settings.
Answer by eXeler0 · Dec 01, 2010 at 02:14 PM
As I understand it (and I'm new to Unity 3), you need a second light to get it working. Or you could write or buy custom shaders like this one by Geenz: http://www.snowcatdesign.org/gzlightmap/
/eX
The shader Legacy > Lightmapp > bumped > Specular works when I bake a L$$anonymous$$ texture in another software. But if I use the Beast lightmapping doesn't works.
Your answer
Follow this Question
Related Questions
Light map glowing edges 1 Answer
Normal maps and Lightmaping in forward rendering 0 Answers
Using dualforward in a shader for specularity and lightmaps 0 Answers
Bumpmapping and Lightmapping for Static Objects 3 Answers
Transparent bumped specular 0 Answers