Search Unity

Question Best way to support Subtracive (mobile) & Indirect baking (PC) on the same scene

Discussion in 'Global Illumination' started by demonixis, May 5, 2020.

  1. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    Hello,

    I'm working on a project that targets PC, Console and Mobile VR. For now all my scenes uses the Subractive baking mode. I would like to use Indirect baking on PC/Console and Subractive on mobile. I see few way to achieve that..

    1. By using the same scene, bake lightmaps in subtractive mode, rename the folder, then rebake in Indirect mode and choose at runtime the desired lighting mode.

    The problem with this solution is that I need to pack both lightmaps, which will take space and generate more shader variants.

    2. Using two scenes with each mode.

    The problem is about the content.. I can duplicate the content, but it's a nightmare for level designers if we need to change something or, creating a big prefab of the scene. To be honest, I don't know if it's a good idea to solve that using a prefab...

    What are your thoughts about this?