示例#1
0
 private void setFogData(ScheduledFogData fogData)
 {
     RenderSettings.fog              = fogData.FogEnabled;
     RenderSettings.fogColor         = fogData.Color;
     RenderSettings.fogDensity       = fogData.Density;
     RenderSettings.fogMode          = fogData.FogMode;
     RenderSettings.fogStartDistance = fogData.StartDistance;
     RenderSettings.fogEndDistance   = fogData.EndDistance;
 }
示例#2
0
 private void startFogAdjustment(ScheduledFogData startData, ScheduledFogData endData, Color startSky, Color endSky)
 {
     startFogData   = startData;
     targetFogData  = endData;
     startSkyTint   = startSky;
     targetSkyTint  = endSky;
     elapsedTime    = 0f;
     normalizedTime = 0f;
     isComplete     = false;
 }
示例#3
0
        private ScheduledFogData getFogData()
        {
            ScheduledFogData scheduledFogData = new ScheduledFogData();

            scheduledFogData.FogEnabled    = RenderSettings.fog;
            scheduledFogData.Color         = RenderSettings.fogColor;
            scheduledFogData.Density       = RenderSettings.fogDensity;
            scheduledFogData.FogMode       = RenderSettings.fogMode;
            scheduledFogData.StartDistance = RenderSettings.fogStartDistance;
            scheduledFogData.EndDistance   = RenderSettings.fogEndDistance;
            return(scheduledFogData);
        }