Пример #1
0
 public void Store(int realtimeMode, int mixedMode)
 {
     this.Update(realtimeMode, mixedMode);
     if (this.CheckCachedObject())
     {
         this.m_enableRealtimeGI.boolValue = (this.m_modeVals[0] == 0);
         LightModeUtil.LightmapMixedBakeMode[] array = new LightModeUtil.LightmapMixedBakeMode[]
         {
             LightModeUtil.LightmapMixedBakeMode.IndirectOnly,
             LightModeUtil.LightmapMixedBakeMode.ShadowMaskAndIndirect,
             LightModeUtil.LightmapMixedBakeMode.ShadowMaskAndIndirect,
             LightModeUtil.LightmapMixedBakeMode.LightmapsWithSubtractiveShadows
         };
         this.m_mixedBakeMode.intValue = (int)array[this.m_modeVals[1]];
         LightModeUtil.ShadowMaskMode[] expr_5C = new LightModeUtil.ShadowMaskMode[4];
         expr_5C[1] = LightModeUtil.ShadowMaskMode.PastShadowDistance;
         expr_5C[2] = LightModeUtil.ShadowMaskMode.Full;
         LightModeUtil.ShadowMaskMode[] array2 = expr_5C;
         this.m_shadowMaskMode.intValue = (int)array2[this.m_modeVals[1]];
     }
 }
Пример #2
0
 public LightModeUtil.MixedLightModeRowIndex MapMixedSettingsToRowIndex(LightModeUtil.LightmapMixedBakeMode bakeMode, LightModeUtil.ShadowMaskMode maskMode)
 {
     LightModeUtil.MixedLightModeRowIndex result;
     if (bakeMode != LightModeUtil.LightmapMixedBakeMode.IndirectOnly)
     {
         if (bakeMode != LightModeUtil.LightmapMixedBakeMode.ShadowMaskAndIndirect)
         {
             if (bakeMode != LightModeUtil.LightmapMixedBakeMode.LightmapsWithSubtractiveShadows)
             {
                 Debug.LogError("Unkown Mixed bake mode in LightModeUtil.MapSettings()");
                 result = LightModeUtil.MixedLightModeRowIndex.IndirectOnly;
             }
             else
             {
                 result = LightModeUtil.MixedLightModeRowIndex.Subtractive;
             }
         }
         else
         {
             result = ((maskMode != LightModeUtil.ShadowMaskMode.PastShadowDistance) ? LightModeUtil.MixedLightModeRowIndex.ShadowMaskAllTheWay : LightModeUtil.MixedLightModeRowIndex.ShadowMaskPastShadowDistance);
         }
     }
     else
     {
         result = LightModeUtil.MixedLightModeRowIndex.IndirectOnly;
     }
     return(result);
 }