Search Unity

Question Bake Lighting per area

Discussion in 'General Graphics' started by DevDunk, Nov 15, 2022.

  1. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,059
    My game has 1 big scene with multiple areas.
    I want to bake lighting per area, with different directional lighting settings per area.

    How could I best approach this?

    The Unity light baking overrides the old lightmaps, so I can't just put the already baked objects on inactive and bake the others, and then both have their individual lightmaps. (unless if I move the lightmaps after every bake etc maybe, but that's far from an ideal workflow)

    I am starting to learn The Bakery Lightbaker from the asset store, but so far I have had no luck in getting those bakes to actually look decent. If The Bakery is the solution I can try to get it working better however.

    Using Unity 2021.3.13 with URP 12.1.6 (Oculus SpaceWarp Branch)
     
  2. joshuacwilde

    joshuacwilde

    Joined:
    Feb 4, 2018
    Posts:
    731
    The bakery dev (Frank) is pretty helpful. You should be able to grab the individual per-light lightmaps stored in the cache after the lightmaps are created and do what you want with those. Talk to him though.
     
    DevDunk likes this.