Beispiel #1
0
        public Game()
        {
            this.Display      = new DisplayManager(1280, 720);
            this.Loader       = new Loader();
            this.StaticShader = new StaticShader();
            this.Renderer     = new Renderer(this.StaticShader);

            //this.TestModel = this.Loader.LoadToVAO(vertices, textureCoords, indices);
            this.TestModel = OBJLoader.LoadModelOBJ("dragon", this.Loader);
            this.texture   = new ModelTexture(this.Loader.LoadTexture("white"));
            //this.texture.Reflectivity = 1;
            //this.texture.ShineDamper = 10;
            this.texturedModel = new TexturedModel(this.TestModel, this.texture);
            this.entity        = new Entity(this.texturedModel, new Vector3(0, 0f, -25f), 0, 0, 0, 0.1f);
            this.light         = new Light(new Vector3(0, 0, -30f), new Vector3(1f, 1f, 1f));
            this.camera        = new Camera();

            this.Init();
        }