public Snowplow(GraphicsDevice device, Model model, VFXEffect effect) : base(device,model,effect) { _isDoubleSided["Circle"] = true; _isDoubleSided["Circle.004"] = true; _isDoubleSided["Circle.003"] = true; }
public VFXModel(GraphicsDevice device, Model model, VFXEffect effect) : base(model) { _effect = effect; _device = device; _translucentMeshes = new List<AccessMesh>(); _opaqueMeshes = new List<AccessMesh>(); _isVisible = new List<Boolean>(); _isDoubleSided = new Dictionary<string, bool>(); _meshTransform = new Matrix[_model.Meshes.Count]; this.SetupModel(); this.SetupEffect(); this.SetLighting(); }
public Jeep(GraphicsDevice device, Model model, VFXEffect effect) : base(device, model, effect) { }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); effect = new BasicEffect(GraphicsDevice); effect.FogEnabled = true; effect.FogStart = 10f; effect.FogEnd = 30f; effect.FogColor = Color.CornflowerBlue.ToVector3(); entities.Add(new Ground(GraphicsDevice, new Vector3(0, -2, 0), Quaternion.Identity, 100f)); Effect effect2 = Content.Load<Effect>("Effects/Effect1"); vfxEffect = new VFXEffect(effect2); //vfxEffect = new VFXEffect(new BasicEffect(GraphicsDevice)); //models.Add(new Snowplow(GraphicsDevice, Content.Load<Model>("snowplow"), vfxEffect)); models.Add(new Jeep(GraphicsDevice, Content.Load<Model>("jeep"), vfxEffect)); //models.Add(new Sphere(GraphicsDevice, Content.Load<Model>("sphere_mapped"), vfxEffect)); // Sphere sphereSkyboxTexture = Content.Load<TextureCube>("Skyboxes/Sunset"); sphereModel = Content.Load<Model>("sphere"); sphereEffect = Content.Load<Effect>("Effects/Reflection"); sphereObject = new Sphere(GraphicsDevice, sphereModel, sphereEffect, sphereSkyboxTexture); // Sphere END foreach (AbstractEntity entity in entities) { entity.LoadContent(this.Content); } // TODO: Models? //simplePlane = new SimplePlane(GraphicsDevice, Vector3.Zero, Quaternion.Identity, 1f); //ground = new Ground(GraphicsDevice, new Vector3(0, 0, 0), Quaternion.Identity, 1f); //ground.LoadContent(Content); }