Ejemplo n.º 1
0
        public World3d()
        {
            Dispatcher.Add(World3d.UpdateEntities);
            App.UpdateList.Add(new UpdateHandler("World3d.UpdateEntities", "", false));

            Agk.SetSunActive(0);
            Agk.SetAmbientColor(0, 0, 0);
            //Agk.SetClearColor(52, 125, 217);

            //TEMP most init will happen during a scene load, stick them here until things get built out more
            Celestials.Add(new CelestialBody("sun")
            {
                LightProperties = new AGKCore.Lighting.Basic.DirectionalLight()
                {
                    Ambient   = new AGKVector4(0.2f, 0.2f, 0.2f, 0),
                    Diffuse   = new AGKVector4(0.5f, 0.5f, 0.5f, 0),
                    Specular  = new AGKVector4(0.5f, 0.5f, 0.5f, 0),
                    Direction = new AGKVector3(1, 1, -0.3f)
                }
            });
        }