/// <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); }
/// <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(); }