public void LoadContent(ContentManager cm, Camera cam) { model = cm.Load<Model>("dome"); model.Meshes[0].MeshParts[0].Effect = cam.CloneFX(); clouds = cm.Load<Texture2D>("ciel"); cloudsRenderTarget = cam.MakeTarget(); }
public void LoadContent(ContentManager cm, Camera cam) { location = Matrix.Identity; wind = Vector3.Left; Map = cm.Load<Texture2D>(nameOfMap); width = Map.Width; length = Map.Height; rippleMap = cm.Load<Texture2D>("river"); Textures[0] = cm.Load<Texture2D>("grass14"); Textures[1] = cm.Load<Texture2D>("dirt02"); Textures[2] = cm.Load<Texture2D>("stone03"); Textures[3] = cm.Load<Texture2D>("snow09"); refractionT = cam.MakeTarget(); reflectionT = cam.MakeTarget(); LoadHeights(); vertices = SetVertices(); indices = SetIndices(); vertices = CalculateNormals(vertices, indices); SetBuffers(cam.device, vertices, indices); SetWater(cam.device); cam.sealevel = waterHeight; }