Esempio n. 1
0
        public void SetCustomCameraView_Additive(NewBlendableTransform view, float fovMult, float weight)
        {
            NewBlendableTransform viewMod = NewBlendableTransform.Lerp(NewBlendableTransform.Identity, view, weight);

            CUSTOM_VIEW_MULTIPLY = new CustomCameraView()
            {
                Location        = CUSTOM_VIEW_MULTIPLY.Location * ((view.GetMatrixScale() * view.GetMatrix()).ToXna()),
                VerticalFovMult = CUSTOM_VIEW_MULTIPLY.VerticalFovMult * (MathHelper.Lerp(1, fovMult, weight)),
            };
        }
Esempio n. 2
0
 public void ClearCustomCameraView_Additive()
 {
     CUSTOM_VIEW_MULTIPLY = CustomCameraView.Default;
 }