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; }
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; }
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); }