Beispiel #1
0
        public PrecipitationViewer(Viewer viewer, WeatherControl weatherControl)
        {
            Viewer         = viewer;
            WeatherControl = weatherControl;
            Weather        = viewer.Simulator.Weather;

            Material      = viewer.MaterialManager.Load("Precipitation");
            Pricipitation = new PrecipitationPrimitive(Viewer.GraphicsDevice);

            Wind = new Vector3(0, 0, 0);
            Reset();
        }
Beispiel #2
0
        public PrecipitationViewer(Viewer viewer, WeatherControl weatherControl)
        {
            IndexesAre32bit = viewer.Settings.IsDirectXFeatureLevelIncluded(ORTS.Settings.UserSettings.DirectXFeature.Level10_0);

            Viewer         = viewer;
            WeatherControl = weatherControl;
            Weather        = viewer.Simulator.Weather;

            Material      = viewer.MaterialManager.Load("Precipitation");
            Pricipitation = new PrecipitationPrimitive(Viewer.GraphicsDevice);

            Wind = new Vector3(0, 0, 0);
            Reset();
        }