Search Unity

Multiple Baked Lightmaps per Scene

Discussion in 'Global Illumination' started by orkungo, Sep 21, 2017.

  1. orkungo

    orkungo

    Joined:
    May 3, 2014
    Posts:
    62
    Hi,

    I would like to know if it is possible to have more then one lightmap sets for a scene on Unity 2017?

    My scenario is, I would like to have lightmaps for day and night views then load to the scene accordingly. I would like to set up my lights for day and night views then switch on only one of them to bake. However, when I want to bake for the second lights set up (say night), it overwrites to the first lightmap (to day). That causes me problem. If there is another way to get different lightmaps for one scene, I would be so happy to hear?
     
  2. orkungo

    orkungo

    Joined:
    May 3, 2014
    Posts:
    62
    Alright, after some more research found that I need to duplicate the folder created and rename-move to resources to load from. Then whenever baking the new set, it will not override to duplicated folder.
     
    WildStyle69 likes this.
  3. westingtyler

    westingtyler

    Joined:
    Dec 7, 2013
    Posts:
    34
    did this end up working? I want to have a day lightmap and a night lightmap I can swap at runtime in the same level. Did you find a way to actually do the swap at runtime?