コード例 #1
0
        public void WeatherManagerSkyEventsHandler(DaggerfallWorkshop.Game.Weather.WeatherType weather)
        {
            if (updateSkyEvent != null)
            {
                updateSkyEvent(IsOvercast);
            }

            if (postProcessingBehaviour != null)
            {
                if (weather == DaggerfallWorkshop.Game.Weather.WeatherType.Fog)
                {
                    if (postProcessingBehaviour != null)
                    {
                        var fogSettings = postProcessingBehaviour.profile.fog.settings;
                        fogSettings.excludeSkybox = false;
                        postProcessingBehaviour.profile.fog.settings = fogSettings;
                    }
                }
                else
                {
                    if (postProcessingBehaviour != null)
                    {
                        var fogSettings = postProcessingBehaviour.profile.fog.settings;
                        fogSettings.excludeSkybox = true;
                        postProcessingBehaviour.profile.fog.settings = fogSettings;
                    }
                }
            }
        }
コード例 #2
0
        public void WeatherManagerSkyEventsHandler(DaggerfallWorkshop.Game.Weather.WeatherType weather)
        {
            if (updateSkyEvent != null)
            {
                updateSkyEvent(IsOvercast);
            }

            if (postProcessingLayer != null)
            {
                if (weather == DaggerfallWorkshop.Game.Weather.WeatherType.Fog)
                {
                    if (postProcessingLayer != null)
                    {
                        postProcessingLayer.fog.excludeSkybox = false;
                    }
                }
                else
                {
                    if (postProcessingLayer != null)
                    {
                        postProcessingLayer.fog.excludeSkybox = true;
                    }
                }
            }
        }