Search Unity

LightingData data access?

Discussion in 'Global Illumination' started by kebrus, Mar 6, 2019.

  1. kebrus

    kebrus

    Joined:
    Oct 10, 2011
    Posts:
    415
    A lot of useful information is stored in the LightingData asset file. However this file is almost a blackbox with only a few things accessible to us. I'd like to return and change the light probes data. I can change the SH coefficients easily and I managed to change their position with a lot of hops because the position only has a getter and not a setter. But changing the probe occlusion seems to be impossible, I'm required to let unity decide for me what to put in there but this means I can't, for example, determined what lights actually affect the baking process of probes since not even culling masks filter it. So i'm at a loss here.

    Do we need to reverse engineer lightingdata asset file just to change some references and values around? Why can't we have some access to do the data it generates? (unity 2018.2/3)
     
  2. uy3d

    uy3d

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    187
    You can get some more details about the whys of the LDA here