private void ambiente(Model3D modelo)
 {
     modelo.Initialize();
     modelo.setAmbientalLight( new Color(10, 10, 30));
     modelo.setLightColor(new Color(128, 128, 190), 0);
     modelo.setLight(true, 1);
     modelo.setLightDir(Vector3.Down, 1);
     modelo.setLight(false, 2);
 }
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            personaje = new Model3D(this.Game, Game.Content.Load<Model>("Assets_Graficos\\Personaje"), camara);
            ambiente(personaje);
            personaje.EnableTexture(true);

            edificios = new Model3D[NEdf];
            for (int i = 0; i < NEdf; i++)
            {
                edificios[i] = new Model3D(this.Game, Game.Content.Load<Model>("Assets_Graficos\\Edificios\\Edf" + i), camara);
                ambiente(edificios[i]);
                edificios[i].scale = 0.1f;
                edificios[i].PreferPerPixelLighting(false);
            }

            rect = new Model3D(Game, Game.Content.Load<Model>("rect"), camara);
            ambiente(rect);

            ropaProta = Game.Content.Load<Texture2D>("Assets_Graficos\\Ropas\\Prota1");
            ropaMalo = Game.Content.Load<Texture2D>("Assets_Graficos\\Ropas\\Malo1");

            fireBall = new Model3D(Game, Game.Content.Load<Model>("Assets_Graficos\\fire_cube"), camara);
            ambiente(fireBall);
            fireBall.setAmbientalLight(Color.White);
            fireBall.PreferPerPixelLighting(false);

            iceJavel = new Model3D(Game, Game.Content.Load<Model>("Assets_Graficos\\IceJavelin"), camara);
            ambiente(iceJavel);
            iceJavel.setAmbientalLight(Color.White);
            iceJavel.PreferPerPixelLighting(false);

            skySphere = Game.Content.Load<Model>("Assets_Graficos\\skySphere");
            skyEffect = Game.Content.Load<Effect>("Assets_Graficos\\skySphereFX");
            TextureCube skyMap = Game.Content.Load<TextureCube>("Assets_Graficos\\skymapNigth");
            skyEffect.Parameters["skyMap"].SetValue(skyMap);
            foreach (ModelMesh mesh in skySphere.Meshes)
            {
                foreach (ModelMeshPart meshPart in mesh.MeshParts)
                {
                    meshPart.Effect = skyEffect;
                }
            }

            portada = Game.Content.Load<Texture2D>("Assets_Graficos\\Portada");
            instrucciones1 = Game.Content.Load<Texture2D>("Assets_Graficos\\instrucciones1");
            instrucciones2 = Game.Content.Load<Texture2D>("Assets_Graficos\\instrucciones2");
            hud = Game.Content.Load<Texture2D>("Assets_Graficos\\hud");
            youWin = Game.Content.Load<Texture2D>("Assets_Graficos\\YouWin");
            youLoose = Game.Content.Load<Texture2D>("Assets_Graficos\\YouLose");

            terreno = Game.Content.Load<Texture2D>("Assets_Graficos\\Terreno");
            rect.setTexture(terreno);

            font = Game.Content.Load<SpriteFont>("Assets_Graficos\\font1");

            thePIXEL = new Texture2D(Game.GraphicsDevice, 1, 1);
            thePIXEL.SetData<Color>(new Color[]{Color.White});

            base.LoadContent();
        }