protected virtual void OnResetDevice() { Fps.OnResetDevice(); Matrix projection = Matrix.PerspectiveFovLH(FieldOfView, AspectRatio, NearPlane, FarPlane); Device.SetTransform(TransformState.Projection, projection); Device.SetTransform(TransformState.View, Freelook.View); Device.SetRenderState(RenderState.Ambient, Ambient); MeshFactory.OnResetDevice(); }