public SkyDome(Game game, ref FreeCamera camera) : base(game) { this.game = game; this.camera = camera; this.domeModel = game.Content.Load <Model>("Content/Models/skydome"); domeEffect = game.Content.Load <Effect>("Content/Effects/Sky"); this.day = game.Content.Load <Texture2D>("content/Textures/SkyDay"); this.sunset = game.Content.Load <Texture2D>("content/Textures/Sunset"); this.night = game.Content.Load <Texture2D>("content/Textures/SkyNight"); domeEffect.CurrentTechnique = domeEffect.Techniques["SkyDome"]; RemapModel(domeModel, domeEffect); realTime = false; parameters = new SkyDomeParameters(); }
public SkyDome(Game game, ref FreeCamera camera) : base(game) { this.game = game; this.camera = camera; this.domeModel = game.Content.Load<Model>("Content/Models/skydome"); domeEffect = game.Content.Load<Effect>("Content/Effects/Sky"); this.day = game.Content.Load<Texture2D>("content/Textures/SkyDay"); this.sunset = game.Content.Load<Texture2D>("content/Textures/Sunset"); this.night = game.Content.Load<Texture2D>("content/Textures/SkyNight"); domeEffect.CurrentTechnique = domeEffect.Techniques["SkyDome"]; RemapModel(domeModel, domeEffect); realTime = false; parameters = new SkyDomeParameters(); }