Exemple #1
0
        //------------------------------------------------------
        // Load Scene
        //------------------------------------------------------

        public void load(PhysicsWorld physics_world, float near_plane)
        {
            _material_manager = new MaterialManager();
            _light_manager    = new LightManager();
            _world_loader     = new WorldLoader(_path_scene, "light_objects", physics_world, _material_manager);


            // Load Scenes
            _world_loader.addWorldToScene(new string[]
            {
                "sponza",
                //"test_scene",
                //"test_scene_2",
            }, _meshes, _light_manager);


            load_Flashlight();
            load_SunLight(near_plane);

            _animation_timer.start();
            _circadian_timer.start();
        }