Ejemplo n.º 1
0
        /// <summary>
        /// Loads the data required
        /// Gets the skyboxEffect shader
        /// Gets the texture that the class was initialised with
        /// </summary>
        public void loadContent(Texture2D tex, ContentManager content, GraphicsDevice gd)
        {
            text = tex;

            e = content.Load <Effect>("Shader/skyBoxEffect");

            world      = e.Parameters["World"];
            view       = e.Parameters["View"];
            projection = e.Parameters["Projection"];

            diffuseTex = e.Parameters["diffTex"];

            sphere.LoadContent(gd);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Loads the data required
        /// Gets the skyboxEffect shader
        /// Gets the texture that the class was initialised with
        /// </summary>
        public void loadContent()
        {
            e = Game.Content.Load <Effect>("Shader/skyBoxEffect");

            world      = e.Parameters["World"];
            view       = e.Parameters["View"];
            projection = e.Parameters["Projection"];

            diffuseTex = e.Parameters["diffTex"];

            cube.LoadContent(Game);

            base.LoadContent();
        }