This class represent sky cube unit which updates the position of the cube to the position of the camera
Inheritance: Unit
Beispiel #1
0
        private SkyCube intitializeSky()
        {
            Model       skymodel    = Content.Load <Model>("skysphere_mesh");
            SkyCubeUnit skyCubeUnit = new SkyCubeUnit(this, Vector3.Zero, Vector3.Zero, new Vector3(10000));
            SkyCube     sky         = new SkyCube(this, skymodel, skyCubeUnit, Content.Load <TextureCube>("clouds"));

            //Model skyDome = Content.Load<Model>("dome");
            //Texture2D cloudMap = Content.Load<Texture2D>("cloudMap");

            //SkyUnit skyUnit = new SkyUnit(this, Vector3.Zero, Vector3.Zero, new Vector3(10000));
            //Sky sky = new Sky(this, skyDome, skyUnit, cloudMap);

            return(sky);
        }
        private SkyCube intitializeSky()
        {
            Model skymodel = Content.Load<Model>("skysphere_mesh");
            SkyCubeUnit skyCubeUnit = new SkyCubeUnit(this,Vector3.Zero, Vector3.Zero, new Vector3(10000));
            SkyCube sky = new SkyCube(this,skymodel,skyCubeUnit,Content.Load<TextureCube>("clouds"));

            //Model skyDome = Content.Load<Model>("dome");
            //Texture2D cloudMap = Content.Load<Texture2D>("cloudMap");

            //SkyUnit skyUnit = new SkyUnit(this, Vector3.Zero, Vector3.Zero, new Vector3(10000));
            //Sky sky = new Sky(this, skyDome, skyUnit, cloudMap);

            return sky;
        }