Search Unity

Use different shaders for lightmaps and play time

Discussion in 'Global Illumination' started by yandrako, Oct 28, 2015.

  1. yandrako

    yandrako

    Joined:
    Dec 2, 2013
    Posts:
    26
    Hi all, I'm developing for tablets and while learning about lightmaps I get this doubts:

    1 - Its possible to use a high quality shader (for example standard shader with heightmaps, specular, etc) for baking the lightmaps and then use a performance-saving shader (for example mobile diffuse) for play time?

    2 - Even if this is possible, its recommended-useful or this method have drawbacks and its just a waste of time configuring and swaping shaders just for that?

    Thank you
     
  2. Dhialub

    Dhialub

    Joined:
    Nov 11, 2013
    Posts:
    41
    You can use different shaders for baking, but you won't get the effects of the standard shader. Basically, if you planning on using mobile diffuse shader, you had better baking the scene with it, since you won't gain anything from baking with standard shader.