public EnviromentCubeMapForm()
        {
            this.skybox = new Skybox( 300, 300, 300, this.back1, this.front1, this.left1, this.right1, this.bottom1, this.top1 );
            this.camera.Position.Set( 0, 0, 50 );

            this.currentDrawObject = this.cube;
        }
        public NormalizeCubeMapForm()
        {
            this.skybox = new Skybox( 300, 300, 300, this.back1, front1, left1, right1, bottom1, top1 );
            camera.Position.Set( 0, 0, 50 );

            currentDrawObject = cube;
        }
        public NormalMapSampleForm()
        {
            WindowSize = new Size( 640, 480 );

            Renderer.Far = 100;
            Renderer.Near = 1;

            camera.Position.Set( 0, 0, 50 );

            drawObject = cube;
        }
예제 #4
0
        public CubeMapSampleForm()
        {
            WindowSize = new Size( 640, 480 );
            Renderer.Far = 1000;
            Renderer.Near = 1;
            camera.Position.Set( 0, 0, 50 );

            this.currentObject = sphere;

            this.RegisterPressed( Keys.D1, elapsed => currentObject = cube );
            this.RegisterPressed( Keys.D2, elapsed => currentObject = sphere );
        }
        protected override void Update( float elapsed )
        {
            if (Keyboard.GetValue( Keys.Space )) pause ^= true;

            if (Keyboard.GetValue( Keys.D1 )) drawObject = cube;
            if (Keyboard.GetValue( Keys.D2 )) drawObject = sphere;

            if (!pause) alpha += 1 * 90 * elapsed;

            base.Update( elapsed );
        }
        protected override void Update( float elapsed )
        {
            base.Update( elapsed );

            if (Keyboard.GetValue( Keys.D1 )) this.currentDrawObject = this.cube;
            if (Keyboard.GetValue( Keys.D2 )) this.currentDrawObject = this.sphere;
        }