示例#1
0
        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;
        }
示例#2
0
 public Game(World world, Renderer renderer)
 {
     World = world;
     Renderer = renderer;
 }