Search Unity

Question How To Access Probe Occlusion?

Discussion in 'Global Illumination' started by l33t_P4j33t, Jan 13, 2021.

  1. l33t_P4j33t

    l33t_P4j33t

    Joined:
    Jul 29, 2019
    Posts:
    232
    what's the
    Code (CSharp):
    1. LightmapSettings.lightProbes.bakedProbes
    equivalent for probe occlusion? LightmapSettings.lightProbes doesn't have anything pertaining to occlusion

    how does
    Code (CSharp):
    1. LightProbes.CalculateInterpolatedLightAndOcclusionProbes();
    calculate the occlusion, and where does it get its data?
     
  2. thefranke

    thefranke

    Unity Technologies

    Joined:
    Jun 20, 2015
    Posts:
    153
    Hey!

    There is no equivalent for probe occlusion data. CalculateInterpolatedLightAndOcclusionProbes computes an interpolated value for both SH and occlusion using the occlusion mask (if it was baked of course).

    Cheers