Example #1
0
 public override void UpdateMatrices()
 {
     WorldToCameraMatrix  = CameraComponent.GetWorldToCamera();
     CameraToWorldMatrix  = CameraComponent.GetCameraToWorld();
     CameraToScreenMatrix = CameraComponent.GetCameraToScreen();
     ScreenToCameraMatrix = CameraComponent.GetScreenToCamera();
 }
Example #2
0
        public override void UpdateMatrices()
        {
            WorldToCameraMatrix  = CameraComponent.GetWorldToCamera();
            CameraToWorldMatrix  = CameraComponent.GetCameraToWorld();
            CameraToScreenMatrix = CameraComponent.GetCameraToScreen();
            ScreenToCameraMatrix = CameraComponent.GetScreenToCamera();

            WorldCameraPosition = transform.position;
        }