public bool Load(Stream gat, Stream gnd, Stream rsw) { Logger.WriteLine("Loading altitude..."); _altitude = new Altitude(); if (!_altitude.Load(gat)) { return(false); } Logger.WriteLine("Loading ground..."); _ground = new Ground(_graphicsDevice); if (!_ground.Load(gnd)) { return(false); } Logger.WriteLine("Loading world..."); _world = new World(_graphicsDevice); if (!_world.Load(rsw, this)) { return(false); } Logger.WriteLine("Creating ground vertex buffer..."); _ground.SetupVertices(); Logger.WriteLine("Building lightmaps..."); BuildLightmaps(); _effect.Parameters["Lightmap"].SetValue(_lightmap); _effect.Parameters["AmbientColor"].SetValue(new Vector3(1, 1, 1)); _effect.Parameters["DiffuseColor"].SetValue(new Vector3(0, 0, 0)); // FIXME: Where I put the light? O_O _effect.Parameters["LightPosition"].SetValue(new Vector3(0, 0, 0)); return(true); }