Exemplo n.º 1
0
        protected override void OnUpdateFrame(FrameEventArgs e)
        {
            timestep = mTimer.GetElapsedSeconds();

            Sphere.Update();
            Light.Update();
            EmitterBox.Update();
            SpotLight.Update();
            Camera.Update(camera);
        }
Exemplo n.º 2
0
        }  //Draw

        protected override void OnUpdateFrame(FrameEventArgs e)
        {
            timestep = mTimer.GetElapsedSeconds();

            Portal_Camera();

            Sphere.Update();
            Light.Update();
            Emitter.Update();
            SpotLight.Update();
            Camera.Update(camera);
            OutputDetails.Update();
            splash.Update();

            foreach (ParticleSystem sp in ActiveParticleSystems)
            {
                sp.Update();
            }

            //Updates the portal views
            mTopPortalView    = Matrix4.Invert(mGroundModel) * Matrix4.CreateTranslation(-9, -15, 0) * Matrix4.CreateRotationY(-(float)Math.PI / 2) * Matrix4.CreateRotationZ(-(float)Math.PI / 2) * topRotation;
            mBottomPortalView = Matrix4.Invert(mGroundModel) * Matrix4.CreateTranslation(0, 25, 0f) * Matrix4.CreateRotationX(-(float)Math.PI / 2) * bottomRotation;
        }  //Update