public static World World() { var world = new World(); world.OnLoading += () => { TextureLibrary.LoadTextureFromFile("smiley.png"); MeshLibrary.LoadObjFile("serpentine city.obj"); world.Entities.Add(new Entity("serpentine city.obj", "smiley.png")); world.Lights.Add(new AmbientLight(Vector3.One / 3f, Vector3.One / 3f) { Position = Vector3.UnitY * 100 }); }; return world; }
public Game(World world, Renderer renderer) { World = world; Renderer = renderer; }