WaveEngine.Components.VR.VRProvider.Update C# (CSharp) Méthode

Update() protected méthode

Update method
protected Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The game time
Résultat void
        protected override void Update(TimeSpan gameTime)
        {
            if (this.IsConnected)
            {
                var leftEyeTexture = this.EyeTextures[0];
                var rightEyeTexture = this.EyeTextures[1];

                if (this.cameraRig.LeftEyeCamera != null)
                {
                    leftEyeTexture.NearPlane = this.cameraRig.LeftEyeCamera.NearPlane;
                    leftEyeTexture.FarPlane = this.cameraRig.LeftEyeCamera.FarPlane;
                }

                if (this.cameraRig.RightEyeCamera != null)
                {
                    rightEyeTexture.NearPlane = this.cameraRig.RightEyeCamera.NearPlane;
                    rightEyeTexture.FarPlane = this.cameraRig.RightEyeCamera.FarPlane;
                }
            }
        }
VRProvider