You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
875 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UltraCombos
{
public class BlendedCosineGradient : MonoBehaviour
{
[SerializeField]
Klak.Chromatics.CosineGradient fromGradient = null;
[SerializeField]
Klak.Chromatics.CosineGradient toGradient = null;
[Range(0, 1)]
public float rate = 0.0f;
public Vector3 coeffsA { get { return Vector3.Lerp(fromGradient.coeffsA, toGradient.coeffsA, rate); } }
public Vector3 coeffsB { get { return Vector3.Lerp(fromGradient.coeffsB, toGradient.coeffsB, rate); } }
public Vector3 coeffsC2 { get { return Vector3.Lerp(fromGradient.coeffsC2, toGradient.coeffsC2, rate); } }
public Vector3 coeffsD2 { get { return Vector3.Lerp(fromGradient.coeffsD2, toGradient.coeffsD2, rate); } }
}
}